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

Disassembly:
push 0xffffffffffffffff
push 0x42be28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x54]
test cl, 2
je 0x4062e9
push 0x193
jmp 0x406760
test cl, 0x10
je 0x406349
mov eax, dword [edi + 0x40]
cmp dword [eax + 0x74], esi
je 0x4062df
push 0xc8
mov ecx, edi
call fcn.00406000
push 0x47f2b4
lea ecx, [esp + 0x30]
call fcn.0041bddb
lea ecx, [esp + 0x2c]
mov dword [esp + 0x50], esi
push ecx
mov ecx, edi
call fcn.00405de0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x50], 0xffffffff
call fcn.0041bd6d
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ecx, dword [edi + 0x34]
or ebp, 0xffffffff
cmp ecx, ebp
je 0x4065ec
mov eax, dword [0x47f64c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], 1
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 2
mov dword [esp + 0x10], esi
call fcn.00416a1a
push ebp
push 0x400
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 3
call fcn.00416a7a
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x10]
push esi
push edx
mov edx, dword [edi + 0x34]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, esi
jbe 0x406560
lea ecx, [esp + 0x28]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.00405310
cmp eax, 1
jne 0x406510
lea esi, [edi + 0x2c]
mov eax, dword [esi]
mov ebx, 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x406538
push 0x3a
mov ecx, esi
call fcn.0041c1c1
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4064b9
lea ecx, [esp + 0x14]
push ebp
push ecx
mov ecx, esi
call fcn.004154cc
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 4
call fcn.00415994
lea ecx, [esp + 0x14]
call fcn.00415948
inc ebp
lea edx, [esp + 0x24]
push ebp
push edx
mov ecx, esi
call fcn.00415413
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 5
call fcn.00415994
lea ecx, [esp + 0x24]
call fcn.00415948
mov eax, dword [esp + 0x14]
push 0x47f308
push eax
call fcn.00409d0e
add esp, 8
test eax, eax
jne 0x406475
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041be5a
xor ebx, ebx
jmp 0x406499
mov edx, dword [esp + 0x14]
push 0x47f2fc
push edx
call fcn.00409d0e
add esp, 8
test eax, eax
jne 0x406499
push 0x12e
lea ecx, [esp + 0x1c]
call fcn.0041c2ab
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 4
call fcn.0041bd6d
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 3
call fcn.0041bd6d
test ebx, ebx
je 0x4064e6
push 0x47f2b4
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0041bfb6
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 6
call fcn.0041c112
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 3
call fcn.0041bd6d
mov ecx, esi
call fcn.0041bcf8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
mov ecx, edi
call fcn.00405310
cmp eax, 1
je 0x4063de
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, dword [edi + 0x34]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x40655d
jmp 0x4063b8
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 0x34]
push 1
sub edx, ebx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x1c]
or ebp, 0xffffffff
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406579
push 0xc8
mov ecx, edi
call fcn.00406000
jmp 0x406585
lea edx, [esp + 0x18]
mov ecx, edi
push edx
call fcn.00405ec0
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.00405de0
push 0x47f2b4
lea ecx, [esp + 0x28]
call fcn.0041bddb
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 7
push ecx
mov ecx, edi
call fcn.00405de0
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 3
call fcn.0041bd6d
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 2
call fcn.00416a4d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 1
call fcn.0041bd6d
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], ebp
call fcn.0041bd6d
jmp 0x406767
mov eax, dword [eax + 0x50]
push esi
push 0x8000080
push 3
push esi
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebp
mov dword [edi + 0x34], eax
je 0x40675b
cmp dword [edi + 0x30], 3
je 0x406331
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x47f2e8
call fcn.0041bddb
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x2c]
push edx
call fcn.00408a10
mov eax, dword [esp + 0x28]
mov ebx, 8
mov dword [esp + 0x50], ebx
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x406690
lea ecx, [esp + 0x30]
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, edi
call fcn.00407aa0
test eax, eax
je 0x406690
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.00407a30
test eax, eax
jne 0x406690
push 0x130
mov ecx, edi
call fcn.00406000
mov ecx, dword [edi + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x34], ebp
jmp 0x406720
push 0xc8
mov ecx, edi
call fcn.00406000
mov ecx, edi
call fcn.00407f30
mov edx, dword [edi + 0x34]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x47f2d8
call fcn.0041bddb
mov ecx, edi
call fcn.004061c0
mov ecx, dword [edi + 0x34]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x406714
push ecx
lea eax, [esp + 0x20]
mov edx, esp
mov dword [esp + 0x30], esp
push eax
push edx
mov ecx, edi
call fcn.004079d0
push ecx
mov byte [esp + 0x58], 9
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x47f2c8
call fcn.0041bddb
mov ecx, edi
mov byte [esp + 0x58], bl
call fcn.004060f0
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x1c]
push 0x47f2b4
lea ecx, [esp + 0x20]
call fcn.0041bddb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0xa
push ecx
mov ecx, edi
call fcn.00405de0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], bl
call fcn.0041bd6d
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], ebp
call fcn.0041bd6d
jmp 0x406767
push 0x1f7
mov ecx, edi
call fcn.00406080
mov ecx, dword [esp + 0x48]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret