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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5135b8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
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
mov edi, ecx
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x30], 0
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
push 0xffffffffffffffff
push str.LoadINISections
push dword [edi + 0x130]
lea ecx, [ebp - 0x44]
call fcn.00489c50
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
inc dword [edi + 0x12c]
cmp dword [edi + 0x124], ebx
jne 0x47f284
lea ebx, [edi + 4]
push ebx
call fcn.0048b440
add esp, 4
test eax, eax
jne 0x47f011
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00489d50
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
xor esi, esi
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x1c]
nop dword [eax]
cmp esi, 0x32
jge 0x47f054
cmp eax, 0xffffffff
jne 0x47f059
test esi, esi
jle 0x47f036
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
mov dword [ebp - 0x34], esi
push 0
push 0
push 3
push 0
push 1
push bind
push ebx
call fcn.0047da10
mov dword [ebp - 0x1c], eax
jmp 0x47f020
cmp eax, 0xffffffff
je 0x47efee
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x47efee
lea esi, [eax + 1]
push esi
call fcn.004a4577
mov ebx, eax
mov dword [ebp - 0x2c], ebx
push esi
push 0
push ebx
call fcn.004b8570
add esp, 0x10
test ebx, ebx
je 0x47efee
push 0
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x20]
push ebx
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47efee
mov eax, dword [ebp - 0x20]
mov byte [ebx + eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0xffffffff
push 0x5693ac
push ebx
call fcn.004b9010
mov edx, eax
mov dword [ebp - 0x14], edx
add esp, 8
test edx, edx
je 0x47f0fa
inc dword [edi + 0x128]
inc edx
mov dword [ebp - 0x14], edx
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47f0e3
sub eax, esi
add eax, ebx
cmp edx, eax
jae 0x47f0d0
push 0x524908
push edx
jmp 0x47f0c3
xor ecx, ecx
mov eax, dword [edi + 0x128]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a4577
mov dword [edi + 0x124], eax
push 0x5693ac
push ebx
call fcn.004b9010
add esp, 0xc
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor esi, esi
mov dword [ebp - 0x28], esi
cmp esi, dword [edi + 0x128]
jae 0x47f277
push 0x5693b0
push eax
call fcn.004b9010
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je 0x47f268
push 0xc
call fcn.00472260
mov ecx, dword [ebp - 0x18]
lea edx, [ecx*4]
mov dword [ebp - 0x20], edx
mov ecx, dword [edi + 0x124]
mov dword [edx + ecx], eax
mov esi, dword [ebp - 0x24]
sub esi, dword [ebp - 0x14]
push esi
call fcn.004a4577
mov ecx, dword [edi + 0x124]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + ecx]
mov dword [ecx], eax
lea eax, [esi - 1]
push eax
mov eax, dword [ebp - 0x14]
inc eax
push eax
mov eax, dword [edi + 0x124]
mov eax, dword [edx + eax]
push dword [eax]
call fcn.004c59d0
mov eax, dword [edi + 0x124]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + eax]
mov eax, dword [eax]
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x14], eax
push 0x524908
push eax
call fcn.004b9010
add esp, 0x1c
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x47f1ef
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47f1e0
sub ecx, edx
lea eax, [ecx + ebx]
mov dword [ebp - 0x24], eax
mov esi, eax
sub esi, dword [ebp - 0x14]
lea eax, [esi + 1]
push eax
call fcn.004a4577
mov ecx, dword [edi + 0x124]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ecx + edx]
mov dword [ecx + 4], eax
push esi
push dword [ebp - 0x14]
mov eax, dword [edi + 0x124]
mov esi, edx
mov eax, dword [eax + esi]
push dword [eax + 4]
call fcn.004c59d0
add esp, 0x10
mov eax, dword [edi + 0x124]
mov eax, dword [eax + esi]
mov eax, dword [eax + 4]
sub eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov byte [eax + edx], 0
mov eax, dword [edi + 0x124]
mov ecx, dword [esi + eax]
mov eax, dword [ecx + 4]
mov dword [ecx + 8], eax
mov dword [ebp - 0x14], edx
test edx, edx
je 0x47f274
lea eax, [edx + 1]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp - 0x28]
inc esi
jmp 0x47f134
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
inc esi
jmp 0x47f134
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x128], ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0
jmp 0x47f2ae
mov byte [ebp - 4], 3
test ebx, ebx
je 0x47f2bf
push ebx
call fcn.004a4580
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
cmp esi, 0xffffffff
je 0x47f2d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00489d50
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret