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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5946
mov eax, dword fs:[0]
push eax
mov eax, 0x200a4
call fcn.004a4d60
mov eax, dword [0x517ba0]
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]
push 0
push 0
push 3
push 0
push 3
mov dword [ebp - 0x20040], eax
mov eax, dword [ebp + 0xc]
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov dword [ebp - 0x2004c], ebx
mov dword [ebp - 0x200a8], ecx
mov dword [ebp - 0x200a4], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x46c653
xor eax, eax
xor bl, bl
jmp 0x46caf6
push 0x51c200
mov dword [ebp - 0x2009c], 0x51c200
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x20058]
mov byte [ebp - 4], 2
push eax
push ebx
mov dword [0x51c784], 4
mov byte [ebp - 0x20035], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x20088], 0
mov ebx, 0x1a9fbe77
mov dword [ebp - 0x20054], ecx
mul ebx
mov edi, 0x624dd2f
mov dword [ebp - 0x2005c], ecx
mov dword [ebp - 0x20048], eax
mov esi, edx
mov eax, ecx
mul edi
mov edi, eax
mov dword [ebp - 0x2003c], edx
mov eax, dword [ebp - 0x20058]
mul ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 0x20058]
mov edx, 0x624dd2f
mul edx
add ecx, esi
mov dword [ebp - 0x20050], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [ebp - 0x2003c]
adc ecx, 0
mov dword [ebp - 0x20048], edi
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 0x20050]
adc eax, eax
add ecx, ebx
mov ebx, dword [ebp - 0x20054]
adc edx, eax
mov eax, dword [ebp - 0x20058]
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 - 0x2008c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 0x4f10e0
mov dword [ebp - 0x20084], eax
mov dword [ebp - 0x20080], edx
call fcn.0049fbd0
push eax
push 0x4f10e0
call fcn.0049fd60
mov ebx, dword [sym.imp.USER32.dll_GetParent]
add esp, 0xc
cmp dword [ebp - 0x2008c], 0
mov edi, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x2007c], eax
lea eax, [ebp - 0x20035]
mov dword [ebp - 0x20078], eax
mov dword [ebp - 0x20074], 0
mov dword [ebp - 0x20064], 0
je 0x46c842
mov eax, dword [ebp - 0x20040]
test eax, eax
je 0x46c7c3
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x20070], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
jmp 0x46c7dc
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
cdq
sub eax, edx
sar eax, 1
push 1
mov dword [ebp - 0x20070], eax
call esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2006c], eax
mov eax, dword [ebp - 0x20040]
push 2
push eax
call dword [sym.imp.USER32.dll_GetAncestor]
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x20064], esi
test esi, esi
je 0x46c81d
call edi
cmp esi, eax
je 0x46c81d
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x46c805
lea eax, [ebp - 0x200a0]
push eax
push 0
lea eax, [ebp - 0x2008c]
push eax
push 0x41e430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20068], eax
cmp byte [ebp - 0x20035], 0
xorps xmm0, xmm0
mov byte [ebp - 4], 3
movlpd qword [ebp - 0x20048], xmm0
jne 0x46ca3b
mov eax, dword [ebp - 0x20044]
mov dword [ebp - 0x2003c], eax
mov eax, dword [ebp - 0x20048]
mov dword [ebp - 0x20040], eax
nop word [eax + eax]
push 0
push dword [0x51c748]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46ca3b
push 0
lea eax, [ebp - 0x20024]
push eax
push 0x20000
lea eax, [ebp - 0x20020]
push eax
push dword [ebp - 0x2004c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46ca3b
mov ebx, dword [ebp - 0x20024]
test ebx, ebx
je 0x46ca3b
xor esi, esi
cmp ebx, 0x34
jb 0x46ca3b
nop dword [eax + eax]
lea edx, [ebp - 0x20020]
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 - 0x20090], eax
cmp eax, ebx
ja 0x46c9d2
push edi
push edx
call fcn.0046cfe0
mov ecx, dword [ebp - 0x20040]
add esp, 8
mov ebx, dword [ebp - 0x2003c]
add ecx, edi
mov eax, ecx
mov dword [ebp - 0x20040], ecx
adc ebx, 0
mov edx, 0x1a9fbe77
mul edx
mov eax, ecx
mov dword [ebp - 0x2003c], ebx
mov esi, edx
mov edi, 0x624dd2f
mul edi
mov ecx, 0x1a9fbe77
mov edi, eax
mov dword [ebp - 0x20054], edx
mov eax, ebx
mul ecx
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 0x2003c]
mov edx, 0x624dd2f
mul edx
add ecx, esi
mov esi, dword [ebp - 0x20090]
mov dword [ebp - 0x20050], eax
adc ebx, 0
mov dword [ebp - 0x20094], edx
mov edx, dword [ebp - 0x20050]
add edi, ecx
mov ecx, dword [ebp - 0x20054]
adc ecx, 0
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 0x20040]
adc eax, eax
add edx, ebx
mov ebx, dword [ebp - 0x20094]
adc ebx, eax
mov eax, dword [ebp - 0x2003c]
sub ecx, edx
sbb eax, ebx
shrd ecx, eax, 1
shr eax, 1
add ecx, edx
adc eax, ebx
mov ebx, dword [ebp - 0x20024]
shrd ecx, eax, 9
mov eax, ebx
sub eax, esi
mov dword [ebp - 0x20088], ecx
cmp eax, 0x34
jae 0x46c8e0
test esi, esi
je 0x46ca3b
push 0
mov ecx, 0x51c200
call fcn.0042dff0
sub esi, dword [ebp - 0x20024]
lea ecx, [ebp - 0x20044]
push 1
mov eax, esi
cdq
push ecx
push eax
push dword [ebp - 0x2004c]
mov dword [ebp - 0x20048], eax
mov dword [ebp - 0x20044], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x20040], eax
mov dword [ebp - 0x20048], eax
cmp eax, 0xffffffff
je 0x46cb22
cmp byte [ebp - 0x20035], 0
mov eax, dword [ebp - 0x20044]
mov dword [ebp - 0x2003c], eax
je 0x46c880
mov bl, 1
cmp dword [ebp - 0x2008c], 0
mov dword [0x51c784], 0
je 0x46cacc
cmp dword [ebp - 0x20074], 0
jne 0x46ca6d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0x32
call esi
cmp dword [ebp - 0x20074], 0
je 0x46ca60
push 0
push 1
push 0x111
push dword [ebp - 0x20074]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push dword [ebp - 0x20068]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20068]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x20064]
test esi, esi
je 0x46cacc
mov edi, dword [sym.imp.USER32.dll_GetParent]
nop dword [eax]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x46cacc
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
mov esi, eax
test esi, esi
jne 0x46cab0
mov ecx, dword [ebp - 0x2007c]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x46cadf
call fcn.0049fda0
push 0x51c200
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x2004c]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 6
test eax, eax
je 0x46cb04
push eax
call ecx
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.004a4433
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x46ca3d