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

Disassembly:
push 0x73c
mov eax, 0x537888
call fcn.004ca35e
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.00462f5a
xor edi, edi
lea ecx, [ebp - 0x508]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.004679a7
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004615e5
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.00464a38
push eax
lea ecx, [ebp - 0x94]
call fcn.004615e5
mov byte [ebp - 4], 2
call fcn.00464a44
mov ecx, eax
call fcn.00461e08
test al, al
je 0x47cd08
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0046185e
push edi
push 0x80
push 3
push edi
push 1
push accept
lea ecx, [ebp - 0x94]
call fcn.00461823
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
jne 0x47ccb2
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0046170c
jmp 0x47ce9f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x47cc9e
push ebx
mov dword [ebp - 0x744], edi
call fcn.004ca504
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 0x47ce88
push esi
call fcn.004ca50d
pop ecx
mov esi, edi
jmp 0x47cc9e
call fcn.00464a44
push eax
lea ecx, [ebp - 0x94]
call fcn.0046185e
call fcn.00464df2
test al, al
je 0x47cd2f
call fcn.00464a4a
mov dword [ebp - 0x73c], eax
jmp 0x47cd9e
call fcn.00464a50
push eax
lea ecx, [ebp - 0x220]
call fcn.004615e5
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00461823
push eax
call fcn.0046a0e4
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x740], eax
call fcn.00461823
push eax
call fcn.0048cea0
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x740]
pop ecx
pop ecx
test eax, eax
je 0x47cd89
push eax
call fcn.004ca50d
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0046170c
mov eax, dword [ebp - 0x73c]
test eax, eax
je 0x47cc9e
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x748], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.004615e5
push 0x550018
push 0x53f474
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.00461fc4
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00461823
push eax
push dword [ebp - 0x73c]
call fcn.0048c86e
add esp, 0x14
test eax, eax
je 0x47ce15
lea ecx, [ebp - 0x118]
call fcn.0046170c
jmp 0x47cc9e
mov ebx, dword [ebp - 0x50c]
test ebx, ebx
je 0x47ce05
push ebx
call fcn.004ca504
push ebx
mov esi, eax
push esi
push dword [ebp - 0x748]
push dword [ebp - 0x73c]
call fcn.0048d2df
add esp, 0x14
test eax, eax
je 0x47ce68
cmp eax, 0x600
je 0x47ce68
push esi
call fcn.004ca50d
pop ecx
mov esi, edi
call fcn.00464df2
test al, al
jne 0x47ce05
push dword [ebp - 0x73c]
call fcn.0048c651
pop ecx
jmp 0x47ce05
call fcn.00464df2
test al, al
jne 0x47ce7d
push dword [ebp - 0x73c]
call fcn.0048c651
pop ecx
lea ecx, [ebp - 0x118]
call fcn.0046170c
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0046170c
test esi, esi
jne 0x47cf20
push edi
push 0x80
push 3
push edi
push 1
push accept
lea ecx, [ebp - 0x19c]
call fcn.00461823
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
je 0x47cf1c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x47cf1c
push ebx
mov dword [ebp - 0x740], edi
call fcn.004ca504
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 0x47cf1c
push esi
call fcn.004ca50d
pop ecx
mov esi, edi
test esi, esi
je 0x47cf32
push ebx
push esi
call fcn.0047cb83
push esi
mov edi, eax
call fcn.004ca50d
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.0046170c
lea ecx, [ebp - 0x508]
call fcn.004633af
mov eax, edi
call fcn.004ca308
ret