Function at 0x4205d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5887fb
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
mov edx, dword [0x5eccf0]
mov ebx, dword [ebp + 8]
or edi, 0xffffffff
push edi
lea eax, [esp + 0x24]
xor ecx, ecx
push edx
lea esi, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
call fcn.004671e0
mov dword [esp + 0x2e8], 0
mov eax, dword [0x5ecd78]
cmp word [eax], 0
jne 0x420727
test ebx, ebx
je 0x420661
push ebx
mov eax, esi
push eax
call fcn.004670a0
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push accept
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, edi
jne 0x4206a9
mov dword [esp + 0x2e8], edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x42083d
push eax
call fcn.005282dc
add esp, 4
jmp 0x42083d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4206dd
mov dword [esp + 0x2e8], edi
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x42083d
push eax
call fcn.005282dc
add esp, 4
jmp 0x42083d
push esi
mov dword [esp + 0x1c], 0
call fcn.0052680d
add esp, 4
push 0
lea edx, [esp + 0x1c]
push edx
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], esi
je 0x420819
push edi
call fcn.0052744f
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
jmp 0x4206bf
push eax
lea edx, [esp + 0x20]
push edx
call fcn.004670a0
cmp byte [0x5efb6b], 0
je 0x420743
mov ebx, dword [0x5f06a0]
jmp 0x420756
mov eax, dword [esp + 0x1c]
push 2
push 0
push eax
call fcn.0046ba60
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x4206b8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xa4]
push edx
push ebx
lea edx, [esp + 0x20]
call fcn.0046bad0
add esp, 8
test eax, eax
jne 0x4206b8
mov esi, dword [esp + 0x2d0]
test esi, esi
jne 0x4207a0
mov dword [esp + 0x2e8], edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
jmp 0x4206c9
push esi
call fcn.0052680d
add esp, 4
cmp dword [ebx], 1
mov edi, eax
je 0x4207bc
mov dword [0x5f06c0], 0x80000
jmp 0x4207dc
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
push esi
push edi
push ecx
push eax
call fcn.0046b970
mov dword [0x5f06c0], eax
test eax, eax
je 0x420807
cmp eax, 0x600
je 0x420807
push edi
call fcn.0052744f
add esp, 4
cmp byte [0x5efb6b], 0
jne 0x4207f7
push ebx
call fcn.0046bc60
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
jmp 0x42068b
cmp byte [0x5efb6b], 0
jne 0x420819
push ebx
call fcn.0046bc60
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x420839
push eax
call fcn.005282dc
add esp, 4
test edi, edi
jne 0x4208b5
mov edx, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 1
push accept
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4208b1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4208b1
push esi
mov dword [esp + 0x18], 0
call fcn.0052680d
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], esi
je 0x4208ad
push edi
call fcn.0052744f
add esp, 4
xor eax, eax
jmp 0x4208ca
test edi, edi
jne 0x4208b5
xor eax, eax
jmp 0x4208ca
push edi
mov eax, esi
call fcn.004208f0
push edi
mov esi, eax
call fcn.005273b8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.005273c3
mov esp, ebp
pop ebp
ret 4