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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5403e8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
or ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
push ebx
push str.LoadINISections
mov eax, dword [esi + 0x130]
push eax
lea ecx, [ebp - 0x40]
call fcn.004cee60
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
inc dword [esi + 0x12c]
cmp dword [esi + 0x124], edi
jne 0x49089f
lea eax, [esi + 4]
push eax
call fcn.004c4aa0
add esp, 4
test eax, eax
jne 0x49064c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004cef70
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
mov dword [ebp - 0x28], edi
nop
cmp edi, 0x32
jge 0x490689
cmp ebx, 0xffffffff
jne 0x49068e
test edi, edi
jle 0x490666
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
mov dword [ebp - 0x28], edi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea eax, [esi + 4]
push eax
call fcn.0048fbc0
mov dword [ebp - 0x18], eax
mov ebx, eax
jmp 0x490650
cmp ebx, 0xffffffff
je 0x490629
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x490629
lea eax, [ebx + 1]
push eax
call fcn.004fc6be
mov edi, eax
mov dword [ebp - 0x1c], edi
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.004ff6f0
add esp, 0x10
test edi, edi
je 0x490629
push 0
lea ecx, [ebp - 0x34]
push ecx
push ebx
push edi
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x490629
mov byte [edi + ebx], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0xffffffff
push 0x5724b0
push edi
call fcn.004fee10
mov dword [ebp - 0x14], eax
add esp, 8
test eax, eax
je 0x490735
inc dword [esi + 0x128]
inc eax
mov dword [ebp - 0x14], eax
mov ecx, edi
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x490716
sub ecx, ebx
add ecx, edi
cmp eax, ecx
jae 0x490703
push 0x5724ac
push eax
call fcn.004fee10
mov dword [ebp - 0x14], eax
jmp 0x490700
xor ecx, ecx
mov eax, dword [esi + 0x128]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fc6be
mov dword [esi + 0x124], eax
push 0x5724b0
push edi
call fcn.004fee10
add esp, 0xc
mov dword [ebp - 0x14], eax
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x20]
cmp eax, dword [esi + 0x128]
jae 0x49088d
push 0x562764
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004fee10
add esp, 8
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x490885
push 0xc
call fcn.00480850
mov edx, dword [esi + 0x124]
mov dword [edx + edi*4], eax
sub ebx, dword [ebp - 0x14]
push ebx
call fcn.004fc6be
mov ecx, dword [esi + 0x124]
mov edx, dword [ecx + edi*4]
mov dword [edx], eax
dec ebx
push ebx
mov ebx, dword [ebp - 0x14]
lea eax, [ebx + 1]
push eax
mov ecx, dword [esi + 0x124]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx]
push eax
call fcn.004ff0c0
mov ecx, dword [esi + 0x124]
mov edx, dword [ecx + edi*4]
mov ecx, dword [edx]
sub ecx, ebx
mov eax, dword [ebp - 0x2c]
mov byte [ecx + eax - 1], 0
inc eax
mov dword [ebp - 0x14], eax
push 0x5724ac
push eax
call fcn.004fee10
add esp, 0x1c
mov ebx, eax
test ebx, ebx
jne 0x49081c
mov edx, dword [ebp - 0x1c]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x490810
sub eax, ebx
lea ebx, [eax + edx]
mov eax, ebx
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
inc eax
push eax
call fcn.004fc6be
mov edx, dword [esi + 0x124]
mov ecx, dword [edx + edi*4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [esi + 0x124]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 4]
push eax
call fcn.004ff0c0
add esp, 0x10
mov ecx, dword [esi + 0x124]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 4]
sub eax, dword [ebp - 0x14]
mov byte [eax + ebx], 0
mov ecx, dword [esi + 0x124]
mov eax, dword [ecx + edi*4]
mov edx, dword [eax + 4]
mov dword [eax + 8], edx
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x49088d
inc ebx
mov dword [ebp - 0x14], ebx
inc edi
mov dword [ebp - 0x30], edi
inc dword [ebp - 0x20]
jmp 0x490770
mov dword [esi + 0x128], edi
mov dword [ebp - 0x24], 1
mov ebx, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 4], edi
jmp 0x4908c7
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x4908db
push eax
call fcn.004fedfc
add esp, 4
mov dword [ebp - 4], edi
jmp 0x490901
cmp ebx, 0xffffffff
je 0x49090d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004cef70
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret