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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5135fa
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x58fa2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
or ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x47f599
cmp byte [eax], 0
je 0x47f599
mov ecx, 0x591d1c
call fcn.00480dd0
mov dword [ebp - 4], edi
push 0x591d1c
lea ecx, [ebp - 0x34]
call fcn.004809f0
mov byte [ebp - 4], 1
nop
lea ecx, [ebp - 0x34]
call fcn.00481420
mov esi, eax
test esi, esi
je 0x47f3c2
mov ecx, dword [ebp + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47f3b1
test dl, dl
je 0x47f3ad
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47f3b1
add eax, 2
add ecx, 2
test dl, dl
jne 0x47f391
xor eax, eax
jmp 0x47f3b6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47f380
mov edi, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x47f4f0
xor esi, esi
mov dword [ebp - 0x24], esi
nop
cmp esi, 0x32
jge 0x47f40b
cmp ebx, 0xffffffff
jne 0x47f414
test esi, esi
jle 0x47f3e6
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
mov dword [ebp - 0x24], esi
push 0
push 0x80
push 4
push 0
push 1
push bind
push dword [ebp + 8]
call fcn.0047da10
mov ebx, eax
mov dword [ebp - 0x18], ebx
jmp 0x47f3d0
cmp ebx, 0xffffffff
je 0x47f4f0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.004a4577
mov dword [ebp - 0x14], eax
push esi
push 0
push eax
call fcn.004b8570
add esp, 0x10
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47f4e0
push 0x10c
call fcn.00472260
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x47f492
push 0x10c
push 0
push esi
call fcn.004b8570
add esp, 0xc
mov ecx, esi
call fcn.0047d560
mov edi, eax
jmp 0x47f494
xor edi, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], edi
push 0x103
push dword [ebp + 8]
push edi
call fcn.004c59d0
add esp, 0xc
push dword [ebp - 0x14]
lea ecx, [edi + 0x104]
call fcn.00488c70
push dword [ebp - 0x14]
lea ecx, [edi + 0x108]
call fcn.00488c70
lea ecx, [edi + 0x108]
call fcn.00489950
push edi
mov ecx, 0x591d1c
call fcn.00480c70
jmp 0x47f4e3
mov edi, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00480ad0
mov dword [ebp - 4], 0xffffffff
jmp 0x47f529
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47f540
push eax
call fcn.004a4580
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x47f56d
mov ecx, 0x591d1c
call fcn.00481550
cmp ebx, 0xffffffff
je 0x47f583
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4