Function at 0x403fff
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x414
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 4
mov eax, ebp
add eax, 0x414
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push 0
push 4
mov eax, ebp
add eax, 0x410
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push 0
push 4
mov eax, ebp
add eax, 0x40c
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push 0
call main
mov dword [ebp + 0x408], eax
push 0
push 0x400
mov eax, ebp
add eax, 8
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push 0
push 4
mov eax, ebp
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
mov eax, dword [ebp + 0x41c]
push eax
push dword [eax - 4]
call main
pop ebx
push eax
push dword [eax - 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_RtlMoveMemory]
pop eax
push eax
call fcn.00404c5e
push 0
lea eax, [ebp + 4]
push eax
push 0x400
lea eax, [ebp + 8]
push eax
push dword [0x411f98]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0
xor ecx, ecx
push ecx
push 0
push dword [ebp + 4]
push 2
pop ebx
pop eax
sub esp, 4
sub eax, ebx
mov dword [esp], eax
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 1
pop ecx
add ecx, eax
pop eax
add ecx, 8
mov byte [ebp + ecx], al
push 0
pop eax
mov dword [ebp + 0x414], eax
push 0
pop eax
mov dword [ebp + 0x410], eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push 1
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
call fcn.004085c0
push eax
mov ecx, ebp
add ecx, 0x408
push ecx
push dword [ecx]
call fcn.00403b1e
pop ecx
pop dword [ecx]
push 1
pop eax
cmp eax, 0
je 0x4048a8
push 0
pop eax
mov dword [ebp + 0x40c], eax
push 1
pop eax
cmp eax, 0
je 0x4042a2
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x410]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 1
pop ecx
add ecx, eax
xor eax, eax
add ecx, 8
mov al, byte [ebp + ecx]
push eax
push 0x410393
pop eax
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push eax
call fcn.0040be5a
push eax
pop eax
pop ebx
sub esp, 4
xor eax, ebx
je 0x4041b3
mov eax, 0xffffffff
not eax
mov dword [esp], eax
pop eax
cmp eax, 0
je 0x4041dc
push 0
push dword [ebp + 0x408]
push dword [ebp + 0x40c]
pop ebx
pop ecx
add ecx, ebx
pop eax
mov byte [ecx], al
jmp 0x4042a2
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x410]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 1
pop ecx
add ecx, eax
xor eax, eax
add ecx, 8
mov al, byte [ebp + ecx]
push eax
push dword [ebp + 0x408]
push dword [ebp + 0x40c]
pop ebx
pop ecx
add ecx, ebx
pop eax
mov byte [ecx], al
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x410]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 1
pop ecx
add ecx, eax
xor eax, eax
add ecx, 8
mov al, byte [ebp + ecx]
push eax
push 0
pop eax
pop ebx
sub esp, 4
xor eax, ebx
je 0x404257
mov eax, 0xffffffff
not eax
mov dword [esp], eax
pop eax
cmp eax, 0
je 0x40426b
jmp 0x4042a2
push dword [ebp + 0x410]
push 1
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
pop eax
mov dword [ebp + 0x410], eax
push dword [ebp + 0x40c]
push 1
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
pop eax
mov dword [ebp + 0x40c], eax
jmp 0x40414b
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x414]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 4
pop ecx
add ecx, eax
push dword [ecx + 0x4114cc]
push 0xa
pop ebx
mov eax, dword [esp]
cmp eax, ebx
je 0x404369
push 9
pop ebx
mov eax, dword [esp]
cmp eax, ebx
je 0x4043b3
push 7
pop ebx
mov eax, dword [esp]
cmp eax, ebx
je 0x404401
push 8
pop ebx
mov eax, dword [esp]
cmp eax, ebx
je 0x404401
push 5
pop ebx
mov eax, dword [esp]
cmp eax, ebx
je 0x40447a
push 6
pop ebx
mov eax, dword [esp]
cmp eax, ebx
je 0x40447a
push 3
pop ebx
mov eax, dword [esp]
cmp eax, ebx
je 0x4044f2
push 4
pop ebx
mov eax, dword [esp]
cmp eax, ebx
je 0x4044f2
push 1
pop ebx
mov eax, dword [esp]
cmp eax, ebx
je 0x40456b
push 2
pop ebx
mov eax, dword [esp]
cmp eax, ebx
je 0x40456b
push 0xb
pop ebx
mov eax, dword [esp]
cmp eax, ebx
je 0x4045e3
add esp, 4
jmp 0x4046a4
add esp, 4
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x414]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 4
pop ecx
add ecx, eax
push dword [ecx + 0x41144c]
lea eax, [ebp + 0x408]
mov eax, dword [eax]
push eax
call fcn.0040946a
sub esp, 8
fstp qword [esp]
fld qword [esp]
add esp, 8
pop eax
fstp qword [eax]
jmp 0x4046a4
add esp, 4
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x414]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 4
pop ecx
add ecx, eax
push dword [ecx + 0x41144c]
lea eax, [ebp + 0x408]
mov eax, dword [eax]
push eax
call fcn.0040946a
sub esp, 8
fstp qword [esp]
fld qword [esp]
add esp, 4
fstp dword [esp]
pop ebx
pop eax
mov dword [eax], ebx
jmp 0x4046a4
add esp, 4
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x414]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 4
pop ecx
add ecx, eax
push dword [ecx + 0x41144c]
lea eax, [ebp + 0x408]
mov eax, dword [eax]
push eax
call fcn.0040946a
sub esp, 8
fstp qword [esp]
fld qword [esp]
sub esp, 0x10
mov dword [esp + 4], eax
fnstcw word [esp]
mov ax, word [esp]
or ah, 0xc
mov word [esp + 2], ax
fldcw word [esp + 2]
mov eax, dword [esp + 4]
add esp, 0x10
fistp qword [esp]
sub esp, 0x10
fldcw word [esp]
add esp, 0x10
pop ecx
pop ebx
pop eax
mov dword [eax], ecx
mov dword [eax + 4], ebx
jmp 0x4046a4
add esp, 4
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x414]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 4
pop ecx
add ecx, eax
push dword [ecx + 0x41144c]
lea eax, [ebp + 0x408]
mov eax, dword [eax]
push eax
call fcn.0040946a
sub esp, 8
fstp qword [esp]
fld qword [esp]
add esp, 4
sub esp, 0x10
mov dword [esp + 4], eax
fnstcw word [esp]
mov ax, word [esp]
or ah, 0xc
mov word [esp + 2], ax
fldcw word [esp + 2]
mov eax, dword [esp + 4]
add esp, 0x10
fistp dword [esp]
sub esp, 0x10
fldcw word [esp]
add esp, 0x10
pop ebx
pop eax
mov dword [eax], ebx
jmp 0x4046a4
add esp, 4
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x414]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 4
pop ecx
add ecx, eax
push dword [ecx + 0x41144c]
lea eax, [ebp + 0x408]
mov eax, dword [eax]
push eax
call fcn.0040946a
sub esp, 8
fstp qword [esp]
fld qword [esp]
add esp, 4
sub esp, 0x10
mov dword [esp + 4], eax
fnstcw word [esp]
mov ax, word [esp]
or ah, 0xc
mov word [esp + 2], ax
fldcw word [esp + 2]
mov eax, dword [esp + 4]
add esp, 0x10
fistp dword [esp]
sub esp, 0x10
fldcw word [esp]
add esp, 0x10
pop ebx
pop eax
mov word [eax], bx
jmp 0x4046a4
add esp, 4
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x414]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 4
pop ecx
add ecx, eax
push dword [ecx + 0x41144c]
lea eax, [ebp + 0x408]
mov eax, dword [eax]
push eax
call fcn.0040946a
sub esp, 8
fstp qword [esp]
fld qword [esp]
add esp, 4
sub esp, 0x10
mov dword [esp + 4], eax
fnstcw word [esp]
mov ax, word [esp]
or ah, 0xc
mov word [esp + 2], ax
fldcw word [esp + 2]
mov eax, dword [esp + 4]
add esp, 0x10
fistp dword [esp]
sub esp, 0x10
fldcw word [esp]
add esp, 0x10
pop ebx
pop eax
mov byte [eax], bl
jmp 0x4046a4
add esp, 4
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x414]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 4
pop ecx
add ecx, eax
push dword [ecx + 0x41144c]
pop eax
mov eax, dword [eax]
push eax
call fcn.00403b1e
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x414]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 4
pop ecx
add ecx, eax
push dword [ecx + 0x41144c]
lea eax, [ebp + 0x408]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
call main
push eax
pop ebx
pop eax
mov dword [eax], ebx
lea eax, [ebp + 0x408]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp + 0x408]
push eax
call fcn.00404f70
push eax
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x414]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 4
pop ecx
add ecx, eax
push dword [ecx + 0x41144c]
pop eax
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_RtlMoveMemory]
jmp 0x4046a4
push dword [ebp + 0x414]
push 1
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
pop eax
mov dword [ebp + 0x414], eax
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x414]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 4
pop ecx
add ecx, eax
push dword [ecx + 0x41144c]
push 0
pop eax
pop ebx
sub esp, 4
xor eax, ebx
je 0x4046f2
mov eax, 0xffffffff
not eax
mov dword [esp], eax
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x410]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 1
pop ecx
add ecx, eax
xor eax, eax
add ecx, 8
mov al, byte [ebp + ecx]
push eax
push 0x410395
pop eax
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push eax
call fcn.0040be5a
push eax
pop eax
pop ebx
sub esp, 4
xor eax, ebx
je 0x404753
mov eax, 0xffffffff
not eax
mov dword [esp], eax
pop ebx
pop eax
sub esp, 4
and eax, ebx
mov dword [esp], eax
pop eax
cmp eax, 0
je 0x4047b2
push 0x410397
push 0xa
pop eax
and eax, 0xff
push eax
call fcn.00404e28
push eax
mov eax, dword [esp + 4]
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov dword [esp + 4], eax
call fcn.00406dac
push eax
call fcn.00404c5e
jmp 0x404075
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x410]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 1
pop ecx
add ecx, eax
xor eax, eax
add ecx, 8
mov al, byte [ebp + ecx]
push eax
push 0
pop eax
pop ebx
sub esp, 4
xor eax, ebx
je 0x4047ee
mov eax, 0xffffffff
not eax
mov dword [esp], eax
pop eax
cmp eax, 0
je 0x40488a
xor ecx, ecx
push ecx
push 0
push dword [ebp + 0x414]
pop eax
imul eax, eax, 1
add dword [esp], eax
pop eax
imul eax, eax, 4
pop ecx
add ecx, eax
push dword [ecx + 0x41144c]
push 0
pop eax
pop ebx
sub esp, 4
xor eax, ebx
je 0x404832
mov eax, 0xffffffff
mov dword [esp], eax
pop eax
cmp eax, 0
je 0x404885
push 0x4103b4
push 0xa
pop eax
and eax, 0xff
push eax
call fcn.00404e28
push eax
mov eax, dword [esp + 4]
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov dword [esp + 4], eax
call fcn.00406dac
push eax
call fcn.00404c5e
jmp 0x404075
jmp 0x4048a8
push dword [ebp + 0x410]
push 1
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
pop eax
mov dword [ebp + 0x410], eax
jmp 0x404136
push dword [ebp + 0x41c]
call fcn.00403b1e
push dword [ebp + 0x408]
call fcn.00403b1e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
add esp, 0x414
ret 4