Function at 0x412b80
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x488d5c
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4b2288]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b2288]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb8]
mov edi, dword [esp + 0xb4]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x18], eax
xor ebx, ebx
mov esi, 0xf
mov eax, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x412c04
sub eax, ebp
push eax
push edi
lea ecx, [esp + 0x8c]
call fcn.00404640
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 1
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x490010
mov dword [esp + 0xd0], ebx
mov byte [ecx + 4], bl
call fcn.00404640
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 1
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x490b68
mov byte [esp + 0xec], 1
mov byte [ecx + 4], bl
call fcn.00404640
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x78], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xe0]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x10c], 2
mov byte [ecx + 4], bl
call fcn.00404330
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x104], bl
call fcn.0040b140
add esp, 0x58
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xb8], 3
call fcn.00404330
mov ebp, 0x10
cmp dword [esp + 0x48], ebp
mov byte [esp + 0xac], bl
jb 0x412ce0
mov edx, dword [esp + 0x34]
push edx
call fcn.00418702
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 1
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x490010
mov byte [ecx + 4], bl
call fcn.00404640
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 2
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x490b6c
mov byte [esp + 0xec], 4
mov byte [ecx + 4], bl
call fcn.00404640
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x7c], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xe0]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x10c], 5
mov byte [ecx + 4], bl
call fcn.00404330
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x104], bl
call fcn.0040b140
add esp, 0x58
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xb8], 6
call fcn.00404330
cmp dword [esp + 0x48], ebp
mov byte [esp + 0xac], bl
jb 0x412d97
mov edx, dword [esp + 0x34]
push edx
call fcn.00418702
add esp, 4
push 1
push ebx
push 0x490010
lea ecx, [esp + 0x90]
call fcn.004035c0
cmp eax, 0xffffffff
jne 0x412e60
lea eax, [esp + 0x68]
push eax
call fcn.00404b50
push 0x490010
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0xbc], 7
call fcn.00404a90
lea edx, [esp + 0x94]
push edx
push eax
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0xc8], 8
call fcn.004049e0
add esp, 0x1c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xb8], 9
call fcn.00404330
cmp dword [esp + 0x64], ebp
jb 0x412e1f
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00418702
add esp, 4
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x412e3e
mov edx, dword [esp + 0x34]
push edx
call fcn.00418702
add esp, 4
cmp dword [esp + 0x80], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x412e60
mov eax, dword [esp + 0x6c]
push eax
call fcn.00418702
add esp, 4
cmp dword [esp + 0x9c], ebp
mov eax, dword [esp + 0x88]
jae 0x412e77
lea eax, [esp + 0x88]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x412f11
cmp esi, ebx
je 0x412f11
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x412eb5
mov edx, dword [edi]
push ebx
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x20]
push eax
push ecx
push edx
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x412ee5
mov dword [eax], ecx
cmp edi, ebx
je 0x412eeb
add dword [edi], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x9c], ebp
jb 0x412f0b
mov eax, dword [esp + 0x88]
push eax
call fcn.00418702
add esp, 4
mov eax, dword [esp + 0x18]
jmp 0x412f2c
cmp dword [esp + 0x9c], ebp
jb 0x412f2a
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00418702
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.00459426
add esp, 0x9c
ret