Function at 0x403ea0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1028
call fcn.0040a410
mov eax, dword [0x42424c]
xor eax, esp
mov dword [esp + 0x1024], eax
push ebx
mov ebx, dword [esp + 0x1034]
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
mov edi, dword [esp + 0x103c]
mov esi, ecx
push edi
lea eax, [esi + 0x31c]
push eax
lea ecx, [esp + 0x3c]
push 0x41c7f8
push ecx
call ebp
push edi
lea edx, [esi + 0x420]
push edx
lea eax, [esp + 0x84c]
push 0x41c7f8
push eax
call ebp
add esp, 0x20
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.004030e0
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x640000
xor esi, esi
push esi
push 0x401
shr eax, 0xa
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], esi
call edi
push esi
push 1
push 0x404
push ebx
call edi
push esi
push esi
push 0x402
push ebx
call edi
push esi
push 0x80
push 3
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80000000
lea edx, [esp + 0x4c]
push edx
call esi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4040fe
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [esp + 0x84c]
push eax
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x403f9e
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4040fe
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea esp, [esp]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x400
lea edx, [esp + 0x440]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
push 0
mov esi, eax
lea eax, [esp + 0x30]
push eax
push 0x400
lea ecx, [esp + 0xc40]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test esi, esi
mov esi, dword [esp + 0x28]
je 0x404003
test esi, esi
jne 0x404003
mov ecx, 1
mov dword [esp + 0x1c], ecx
jmp 0x404007
mov ecx, dword [esp + 0x1c]
test eax, eax
mov edx, dword [esp + 0x2c]
je 0x40401e
test edx, edx
jne 0x40401e
mov eax, 1
mov dword [esp + 0x20], eax
jmp 0x404022
mov eax, dword [esp + 0x20]
test ecx, ecx
je 0x40402a
test eax, eax
jne 0x404099
cmp ecx, eax
jne 0x4040ce
cmp esi, edx
jne 0x4040de
xor eax, eax
test esi, esi
jbe 0x40405b
mov cl, byte [esp + eax + 0x434]
cmp cl, byte [esp + eax + 0xc34]
jne 0x4040ee
add eax, 1
cmp eax, esi
jb 0x404040
add dword [esp + 0x18], 1
fild dword [esp + 0x18]
fidiv dword [esp + 0x30]
fmul qword [0x41d058]
call fcn.0040a440
mov esi, eax
cmp dword [esp + 0x24], esi
je 0x403fb0
push 0
push 0
push 0x405
push ebx
call edi
add dword [esp + 0x14], 1
mov dword [esp + 0x24], esi
jmp 0x403fb0
mov esi, 0x64
sub esi, dword [esp + 0x14]
test esi, esi
jle 0x4040b7
push 0
push 0
push 0x405
push ebx
call edi
sub esi, 1
jne 0x4040a6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, 1
jmp 0x404100
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
mov eax, dword [esp + 0x10]
push eax
jmp 0x4040fc
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x4040fc
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
xor eax, eax
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004096cb
add esp, 0x1028
ret 8