Function at 0x46f7c0
Capabilities:
Create thread
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7490
mov eax, dword fs:[0]
push eax
mov eax, 0x200a4
call fcn.004a7970
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push 0
push 0
push 3
push 0
push 3
mov dword [ebp - 0x20098], eax
mov eax, dword [ebp + 0xc]
push accept
push eax
movlpd qword [ebp - 0x54], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov dword [ebp - 0x20090], ebx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x46f845
xor eax, eax
xor bl, bl
jmp 0x46fc81
push 0x52da90
mov dword [ebp - 0x200a8], 0x52da90
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x20080]
mov byte [ebp - 4], 2
push eax
push ebx
mov dword [0x52e024], 4
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [ebp - 0x4c]
push 0x30
push 0
push eax
mov dword [ebp - 0x20094], edi
mov dword [ebp - 0x20084], edi
call fcn.004aa220
mov ecx, 0x1a9fbe77
mov dword [ebp - 0x48], 0
mov eax, edi
mov ebx, 0x624dd2f
mul ecx
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov esi, edx
mov eax, edi
mul ebx
mov edi, eax
mov dword [ebp - 0x2008c], edx
mov eax, dword [ebp - 0x20080]
mul ecx
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 0x20080]
mov edx, 0x624dd2f
mul edx
add ecx, esi
mov dword [ebp - 0x20088], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [ebp - 0x2008c]
adc ecx, 0
mov dword [ebp - 0x1c], edi
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 0x20088]
adc eax, eax
add ecx, ebx
mov ebx, dword [ebp - 0x20094]
adc edx, eax
mov eax, dword [ebp - 0x20080]
sub ebx, ecx
sbb eax, edx
shrd ebx, eax, 1
shr eax, 1
add ebx, ecx
adc eax, edx
shrd ebx, eax, 9
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 0x4f41c0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
call fcn.004a27e0
push eax
push 0x4f41c0
call fcn.004a29e0
mov dword [ebp - 0x3c], eax
add esp, 0xc
cmp dword [ebp - 0x4c], 0
lea eax, [ebp - 0x11]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
je 0x46fa0c
mov ebx, dword [ebp - 0x20098]
test ebx, ebx
je 0x46f991
lea eax, [ebp - 0x64]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x64]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x60]
jmp 0x46f9a9
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
push 1
mov dword [ebp - 0x30], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
push 2
sar eax, 1
push ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.dll_GetAncestor]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x46f9f0
nop word [eax + eax]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x46f9f0
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
jne 0x46f9d0
lea eax, [ebp - 0x68]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x419a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x28], eax
cmp byte [ebp - 0x11], 0
xorps xmm0, xmm0
mov byte [ebp - 4], 3
movlpd qword [ebp - 0x1c], xmm0
jne 0x46fbe9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20088], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2008c], eax
nop dword [eax]
nop dword [eax + eax]
push 0
push dword [0x52dfe8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46fbe9
push 0
lea eax, [ebp - 0x2006c]
push eax
push 0x20000
lea eax, [ebp - 0x20068]
push eax
push dword [ebp - 0x20090]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46fbe9
mov ebx, dword [ebp - 0x2006c]
test ebx, ebx
je 0x46fbe9
xor esi, esi
cmp ebx, 0x34
jb 0x46fbe9
nop dword [eax + eax]
lea edx, [ebp - 0x20068]
add edx, esi
mov eax, dword [edx + 0x2c]
movzx edi, word [edx + 0x28]
add eax, 0x34
lea edi, [eax + edi*4]
lea eax, [edi + esi]
mov dword [ebp - 0x2009c], eax
cmp eax, ebx
ja 0x46fb92
push edi
push edx
lfence
call fcn.00470170
mov ecx, dword [ebp - 0x2008c]
add esp, 8
mov ebx, dword [ebp - 0x20088]
add ecx, edi
mov eax, ecx
mov dword [ebp - 0x2008c], ecx
adc ebx, 0
mov edx, 0x1a9fbe77
mul edx
mov eax, ecx
mov dword [ebp - 0x20088], ebx
mov esi, edx
mov edi, 0x624dd2f
mul edi
mov ecx, 0x1a9fbe77
mov edi, eax
mov dword [ebp - 0x20098], edx
mov eax, ebx
mul ecx
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 0x20088]
mov edx, 0x624dd2f
mul edx
add ecx, esi
mov esi, dword [ebp - 0x2009c]
mov dword [ebp - 0x20094], eax
adc ebx, 0
mov dword [ebp - 0x200a0], edx
mov edx, dword [ebp - 0x20094]
add edi, ecx
mov ecx, dword [ebp - 0x20098]
adc ecx, 0
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 0x2008c]
adc eax, eax
add edx, ebx
mov ebx, dword [ebp - 0x200a0]
adc ebx, eax
mov eax, dword [ebp - 0x20088]
sub ecx, edx
sbb eax, ebx
shrd ecx, eax, 1
shr eax, 1
add ecx, edx
adc eax, ebx
mov ebx, dword [ebp - 0x2006c]
shrd ecx, eax, 9
mov eax, ebx
sub eax, esi
mov dword [ebp - 0x48], ecx
cmp eax, 0x34
jae 0x46faa0
test esi, esi
je 0x46fbe9
push 0
mov ecx, 0x52da90
call fcn.004299e0
sub esi, dword [ebp - 0x2006c]
lea ecx, [ebp - 0x18]
push 1
mov eax, esi
cdq
push ecx
push eax
push dword [ebp - 0x20090]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x2008c], eax
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x46fcb1
cmp byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20088], eax
je 0x46fa40
mov bl, 1
cmp dword [ebp - 0x4c], 0
mov dword [0x52e024], 0
je 0x46fc60
cmp dword [ebp - 0x34], 0
jne 0x46fc0f
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x34], 0
je 0x46fc01
push 0
push 1
push 0x111
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x46fc60
nop dword [eax]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x46fc60
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
jne 0x46fc40
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x46fc70
call fcn.004a2a20
push 0x52da90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x20090]
mov dword [ebp - 4], 6
test eax, eax
je 0x46fc93
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x46fbeb