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

Disassembly:
push 0x73c
mov eax, 0x4e2809
call fcn.004b2d02
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.00463074
xor edi, edi
lea ecx, [ebp - 0x508]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.0046764e
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0046199f
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.00464936
push eax
lea ecx, [ebp - 0x94]
call fcn.0046199f
mov byte [ebp - 4], 2
call fcn.0046493c
mov ecx, eax
call fcn.00462271
test al, al
je 0x47c67b
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00461c67
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.00461c2b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
jne 0x47c625
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00461aab
jmp 0x47c812
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x47c611
push ebx
mov dword [ebp - 0x744], edi
call fcn.004b1c4b
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x744]
push eax
push ebx
push esi
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x744], ebx
je 0x47c7fb
push esi
call fcn.004b1c54
pop ecx
mov esi, edi
jmp 0x47c611
call fcn.0046493c
push eax
lea ecx, [ebp - 0x94]
call fcn.00461c67
call fcn.00464ba5
test al, al
je 0x47c6a2
call fcn.00464942
mov dword [ebp - 0x73c], eax
jmp 0x47c711
call fcn.00464948
push eax
lea ecx, [ebp - 0x220]
call fcn.0046199f
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00461c2b
push eax
call fcn.004699cb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x740], eax
call fcn.00461c2b
push eax
call fcn.00470711
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x740]
pop ecx
pop ecx
test eax, eax
je 0x47c6fc
push eax
call fcn.004b1c54
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00461aab
mov eax, dword [ebp - 0x73c]
test eax, eax
je 0x47c611
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x748], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.0046199f
push 0x4e5b48
push 0x4e5994
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0046242f
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00461c2b
push eax
push dword [ebp - 0x73c]
call fcn.004700df
add esp, 0x14
test eax, eax
je 0x47c788
lea ecx, [ebp - 0x118]
call fcn.00461aab
jmp 0x47c611
mov ebx, dword [ebp - 0x50c]
test ebx, ebx
je 0x47c778
push ebx
call fcn.004b1c4b
push ebx
mov esi, eax
push esi
push dword [ebp - 0x748]
push dword [ebp - 0x73c]
call fcn.00470b63
add esp, 0x14
test eax, eax
je 0x47c7db
cmp eax, 0x600
je 0x47c7db
push esi
call fcn.004b1c54
pop ecx
mov esi, edi
call fcn.00464ba5
test al, al
jne 0x47c778
push dword [ebp - 0x73c]
call fcn.0046fec4
pop ecx
jmp 0x47c778
call fcn.00464ba5
test al, al
jne 0x47c7f0
push dword [ebp - 0x73c]
call fcn.0046fec4
pop ecx
lea ecx, [ebp - 0x118]
call fcn.00461aab
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00461aab
test esi, esi
jne 0x47c893
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x19c]
call fcn.00461c2b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
je 0x47c88f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x47c88f
push ebx
mov dword [ebp - 0x740], edi
call fcn.004b1c4b
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x740]
push eax
push ebx
push esi
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x740], ebx
je 0x47c88f
push esi
call fcn.004b1c54
pop ecx
jmp 0x47c8a5
test esi, esi
je 0x47c8a5
push ebx
push esi
call fcn.0047c4f6
push esi
mov edi, eax
call fcn.004b1c54
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.00461aab
lea ecx, [ebp - 0x508]
call fcn.00463500
mov eax, edi
call fcn.004b2cc0
ret