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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4807f8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4c3408]
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.00429fd0
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
inc dword [edi + 0x12c]
cmp dword [edi + 0x124], ebx
jne 0x466384
lea ebx, [edi + 4]
push ebx
call fcn.0042a1c0
add esp, 4
test eax, eax
jne 0x466111
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0042a0d0
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 0x466154
cmp eax, 0xffffffff
jne 0x466159
test esi, esi
jle 0x466136
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 SysReAllocString
push ebx
call fcn.00464b00
mov dword [ebp - 0x1c], eax
jmp 0x466120
cmp eax, 0xffffffff
je 0x4660ee
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x4660ee
lea esi, [eax + 1]
push esi
call fcn.0043a304
mov ebx, eax
mov dword [ebp - 0x2c], ebx
push esi
push 0
push ebx
call fcn.0043f7e0
add esp, 0x10
test ebx, ebx
je 0x4660ee
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 0x4660ee
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 0x4b0e74
push ebx
call fcn.00440890
mov edx, eax
mov dword [ebp - 0x14], edx
add esp, 8
test edx, edx
je 0x4661fa
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 0x4661e3
sub eax, esi
add eax, ebx
cmp edx, eax
jae 0x4661d0
push 0x4aeb2c
push edx
jmp 0x4661c3
xor ecx, ecx
mov eax, dword [edi + 0x128]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043a304
mov dword [edi + 0x124], eax
push 0x4b0e74
push ebx
call fcn.00440890
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 0x466377
push 0x4b0e78
push eax
call fcn.00440890
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je 0x466368
push 0xc
call fcn.0043a2d1
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.0043a304
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.0044db60
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 0x4aeb2c
push eax
call fcn.00440890
add esp, 0x1c
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4662ef
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4662e0
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.0043a304
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.0044db60
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 0x466374
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 0x466234
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
inc esi
jmp 0x466234
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x128], ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0
jmp 0x4663ae
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4663bf
push ebx
call fcn.0043a30d
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
cmp esi, 0xffffffff
je 0x4663d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0042a0d0
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