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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58cf3b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x60940c]
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 dword [ebp - 0x2d4], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c8], ebx
call fcn.004340f0
push eax
lea ecx, [ebp - 0x94]
call fcn.00431560
mov dword [ebp - 4], 0
call fcn.00434100
mov ecx, eax
call fcn.00432190
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, al
je 0x471995
push ebx
lea ecx, [ebp - 0x94]
call fcn.004319c0
push 0
push 0x80
push 3
push 0
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.0057d6c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x471919
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x94]
call fcn.00431750
jmp 0x471abc
push 0
push ebx
call esi
mov esi, eax
test esi, esi
jne 0x47193b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00431750
jmp 0x471ab6
push esi
mov dword [ebp - 0x2cc], 0
call fcn.0052b7a0
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2cc]
push 0
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 [ebp - 0x2cc], esi
je 0x471a9c
push edi
call fcn.00447d00
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00431750
jmp 0x471ab6
call fcn.00434100
push eax
lea ecx, [ebp - 0x94]
call fcn.004319a0
call fcn.00434250
test al, al
je 0x4719b6
call fcn.00434110
jmp 0x4719ce
push 2
push 0
lea ecx, [ebp - 0x94]
call fcn.0057d6c0
push eax
call fcn.0045e9e0
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x4719eb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00431750
jmp 0x471abc
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d0]
push eax
push 1
push dword [ebp - 0x2c8]
push ebx
call fcn.0045e2f0
add esp, 0x14
test eax, eax
je 0x471a25
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00431750
jmp 0x471abc
mov esi, dword [ebp - 0x98]
test esi, esi
jne 0x471a43
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00431750
jmp 0x471ab6
push esi
call fcn.0052b7a0
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d0]
push ebx
call fcn.0045eeb0
add esp, 0x18
test eax, eax
je 0x471a8a
cmp eax, 0x600
je 0x471a8a
push edi
call fcn.00447d00
add esp, 4
call fcn.00434250
test al, al
jne 0x47197e
push ebx
call fcn.0045e0d0
jmp 0x47197b
call fcn.00434250
test al, al
jne 0x471a9c
push ebx
call fcn.0045e0d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00431750
test edi, edi
jne 0x471b37
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0x80
push 3
push 0
push 1
push connect
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x471b33
push 0
push ebx
call esi
mov esi, eax
test esi, esi
je 0x471b33
push esi
mov dword [ebp - 0x2c8], 0
call fcn.0052b7a0
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2c8]
push 0
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 [ebp - 0x2c8], esi
je 0x471b2f
push edi
call fcn.00447d00
add esp, 4
xor eax, eax
jmp 0x471b53
test edi, edi
jne 0x471b37
xor eax, eax
jmp 0x471b53
mov ecx, dword [ebp - 0x2d4]
push esi
push edi
call fcn.00471b80
push 1
push edi
mov esi, eax
call fcn.0052ae70
add esp, 8
mov eax, esi
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.0052b33d
mov esp, ebp
pop ebp
ret 4