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

Disassembly:
push 0x73c
mov eax, 0x4e04fa
call fcn.004b14b1
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.0046079c
xor edi, edi
lea ecx, [ebp - 0x508]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.00464e50
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0046acdb
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.00462132
push eax
lea ecx, [ebp - 0x94]
call fcn.0046acdb
mov byte [ebp - 4], 2
call fcn.0046213e
mov ecx, eax
call fcn.0046b5c8
test al, al
je 0x47af14
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0046afbe
push edi
push 0x80
push 3
push edi
push 1
push accept
lea ecx, [ebp - 0x94]
call fcn.0046af82
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
jne 0x47aebe
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0046ae02
jmp 0x47b0ab
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x47aeaa
push ebx
mov dword [ebp - 0x744], edi
call fcn.004b07ac
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 0x47b094
push esi
call fcn.004b0526
pop ecx
mov esi, edi
jmp 0x47aeaa
call fcn.0046213e
push eax
lea ecx, [ebp - 0x94]
call fcn.0046afbe
call fcn.004623a7
test al, al
je 0x47af3b
call fcn.00462144
mov dword [ebp - 0x73c], eax
jmp 0x47afaa
call fcn.0046214a
push eax
lea ecx, [ebp - 0x220]
call fcn.0046acdb
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0046af82
push eax
call fcn.00467223
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x740], eax
call fcn.0046af82
push eax
call fcn.0046ee58
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x740]
pop ecx
pop ecx
test eax, eax
je 0x47af95
push eax
call fcn.004b0526
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0046ae02
mov eax, dword [ebp - 0x73c]
test eax, eax
je 0x47aeaa
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x748], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.0046acdb
push 0x505af0
push 0x505a64
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0046b786
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0046af82
push eax
push dword [ebp - 0x73c]
call fcn.0046e826
add esp, 0x14
test eax, eax
je 0x47b021
lea ecx, [ebp - 0x118]
call fcn.0046ae02
jmp 0x47aeaa
mov ebx, dword [ebp - 0x50c]
test ebx, ebx
je 0x47b011
push ebx
call fcn.004b07ac
push ebx
mov esi, eax
push esi
push dword [ebp - 0x748]
push dword [ebp - 0x73c]
call fcn.0046f2aa
add esp, 0x14
test eax, eax
je 0x47b074
cmp eax, 0x600
je 0x47b074
push esi
call fcn.004b0526
pop ecx
mov esi, edi
call fcn.004623a7
test al, al
jne 0x47b011
push dword [ebp - 0x73c]
call fcn.0046e60b
pop ecx
jmp 0x47b011
call fcn.004623a7
test al, al
jne 0x47b089
push dword [ebp - 0x73c]
call fcn.0046e60b
pop ecx
lea ecx, [ebp - 0x118]
call fcn.0046ae02
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0046ae02
test esi, esi
jne 0x47b12c
push edi
push 0x80
push 3
push edi
push 1
push accept
lea ecx, [ebp - 0x19c]
call fcn.0046af82
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
je 0x47b128
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x47b128
push ebx
mov dword [ebp - 0x740], edi
call fcn.004b07ac
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 0x47b128
push esi
call fcn.004b0526
pop ecx
jmp 0x47b13e
test esi, esi
je 0x47b13e
push ebx
push esi
call fcn.0047ad8f
push esi
mov edi, eax
call fcn.004b0526
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.0046ae02
lea ecx, [ebp - 0x508]
call fcn.00460c28
mov eax, edi
call fcn.004b146f
ret