Function at 0x404b90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
mov esi, ecx
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404bf4
call fcn.00412130
test eax, eax
je 0x404bd5
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x404bd7
xor eax, eax
mov ecx, dword [eax + 0x20]
push 0
push ebx
push 0x51f4a8
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x230
call fcn.004fb154
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x404c44
call fcn.00412130
test eax, eax
je 0x404c1b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x404c1d
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x20]
push 0
push ecx
push 0x51f494
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
mov ecx, esi
call fcn.00404350
mov dword [ebx + 0x20c], eax
cmp eax, 0xffffffff
jne 0x404c9d
call fcn.00412130
test eax, eax
je 0x404c6b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x404c6d
xor eax, eax
mov ecx, dword [ebp + 8]
push 0
push ecx
push 0x51f480
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004fb11a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
dec eax
shl eax, 5
add eax, 0x230
push eax
push ebx
call fcn.004fb1e8
mov esi, eax
add esp, 8
test esi, esi
jne 0x404ce2
call fcn.00412130
test eax, eax
je 0x404cd4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [ebp + 8]
push esi
push ecx
push 0x51f468
jmp 0x404c78
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push ecx
push 0x51f468
jmp 0x404c78
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea ecx, [esi + 4]
push ecx
call ebx
push 0x51f396
lea edx, [esi + 0x108]
push edx
call ebx
mov ebx, dword [esi + 0x20c]
shl ebx, 4
push ebx
call fcn.004fb154
add esp, 4
mov dword [ebp - 4], eax
push 0
test eax, eax
jne 0x404d4e
mov eax, dword [ebp + 8]
push eax
push 0x51f44c
call fcn.00404250
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004fb11a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0xc]
push edx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404d6c
mov eax, dword [ebp + 8]
push 0
push eax
push 0x51f438
jmp 0x404d24
mov eax, dword [esi + 0x20c]
mov edx, eax
shl edx, 4
cmp dword [ebp - 0xc], edx
jne 0x404d5f
mov dword [ebp - 0x10], 0
test eax, eax
je 0x404e2f
mov ebx, dword [ebp - 4]
lea edx, [esi + 0x21c]
add ebx, 8
mov dword [ebp - 8], edx
lea ebx, [ebx]
mov eax, dword [ebx]
push eax
call fcn.004fb154
mov ecx, dword [ebp - 8]
add esp, 4
mov dword [ecx], eax
push 0
test eax, eax
je 0x404e54
mov edx, dword [ebx]
mov dword [ecx + 4], edx
mov eax, dword [ebx + 4]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
cmp eax, 0xffffffff
je 0x404e90
mov edx, dword [ebx]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [eax]
push edx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404e9b
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebx]
jne 0x404ea8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call fcn.004042e0
test eax, eax
je 0x404ee6
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], 0x20
inc eax
add ebx, 0x10
mov dword [ebp - 0x10], eax
cmp eax, dword [esi + 0x20c]
jb 0x404da0
mov ecx, dword [ebp - 4]
push ecx
call fcn.004fb11a
push 0
call fcn.004fb11a
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push ecx
push 0x51f468
call fcn.00404250
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004fb11a
mov eax, dword [ebp - 4]
push eax
call fcn.004fb11a
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push ecx
push 0x51f424
jmp 0x404e5d
mov ecx, dword [ebp + 8]
push 0
push ecx
push 0x51f414
jmp 0x404e5d
mov ecx, dword [ebp + 8]
push 0
push ecx
push 0x51f414
call fcn.00404250
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call fcn.004fb11a
push esi
call fcn.004fb11a
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0
push ecx
push 0x51f3fc
jmp 0x404eb3