Function at 0x4025f0
Capabilities:
Read file on windows
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov ebx, ecx
push edi
push 0
push 0
mov eax, dword [ebx + 0xfc0]
push 0x1004
push eax
call ebp
cmp eax, 1
je 0x40296f
mov ecx, dword [ebx + 0xfc0]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebp
mov esi, eax
inc esi
je 0x40296f
mov edx, dword [ebx + 0xfc0]
lea edi, [esi - 1]
push 2
push edi
push 0x100c
push edx
call ebp
inc eax
push 0
mov esi, eax
mov eax, dword [ebx + 0xfc0]
push 0
push 0x103c
push eax
call ebp
lea ecx, [ebx + edi*4 + 0x44d8]
push ecx
mov ecx, ebx
call fcn.00403b10
test esi, esi
jne 0x402635
push eax
mov ecx, ebx
call fcn.00405010
cmp dword [ebx + 0x18bc], 7
je 0x40296f
mov eax, dword [ebx + 0x49a4]
cmp eax, 1
je 0x4028d9
cmp eax, 2
je 0x4028d9
cmp eax, 3
jne 0x402900
push 1
push 0x104
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
xor ebp, ebp
add esp, 8
cmp esi, ebp
mov dword [esp + 0x14], esi
jne 0x4026d5
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebx + 0x1aa0]
cmp eax, 1
jne 0x4027cb
mov ecx, ebx
call fcn.004051c0
mov edi, eax
cmp edi, ebp
jne 0x402705
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edx, dword [ebx + 0x1aa4]
push ebp
push edx
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 0x18
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
lea eax, [ebx + 0x1b2c]
mov ecx, 6
mov edi, eax
add esp, 0x1c
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax]
cmp eax, ebp
jne 0x402765
cmp dword [ebx + 0x1b34], ebp
je 0x402765
push ebp
lea ecx, [ebx + 0x900]
call sub.MFC42u.DLL_CWnd::EnableWindow
push ebp
lea ecx, [ebx + 0x66c]
call sub.MFC42u.DLL_CWnd::EnableWindow
push 1
lea ecx, [ebx + 0xb94]
jmp 0x4028fb
cmp eax, 1
jne 0x402797
cmp dword [ebx + 0x1b34], ebp
je 0x402797
push ebp
lea ecx, [ebx + 0xb94]
call sub.MFC42u.DLL_CWnd::EnableWindow
push ebp
lea ecx, [ebx + 0x66c]
call sub.MFC42u.DLL_CWnd::EnableWindow
push 1
lea ecx, [ebx + 0x900]
jmp 0x4028fb
cmp eax, 2
jne 0x402900
cmp dword [ebx + 0x1b34], ebp
je 0x402900
push ebp
lea ecx, [ebx + 0xb94]
call sub.MFC42u.DLL_CWnd::EnableWindow
push ebp
lea ecx, [ebx + 0x900]
call sub.MFC42u.DLL_CWnd::EnableWindow
push 1
jmp 0x4028f5
cmp eax, 2
jb 0x402900
lea ecx, [ebx + 0xb94]
push ebp
call sub.MFC42u.DLL_CWnd::EnableWindow
lea ecx, [ebx + 0x900]
push ebp
call sub.MFC42u.DLL_CWnd::EnableWindow
lea ecx, [ebx + 0x66c]
push ebp
call sub.MFC42u.DLL_CWnd::EnableWindow
mov eax, dword [ebx + 0x1aa0]
mov dword [esp + 0x18], ebp
cmp eax, ebp
jbe 0x402900
mov dword [esp + 0x10], ebp
jmp 0x402814
mov esi, dword [esp + 0x14]
mov ecx, ebx
call fcn.004051c0
mov edi, eax
test edi, edi
je 0x4026f1
mov eax, dword [ebx + 0x1aa4]
mov ecx, dword [esp + 0x10]
add eax, ecx
push 0
push eax
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 0x18
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov esi, dword [esp + 0x30]
lea ebp, [ebx + 0x1b2c]
mov ecx, 6
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp]
add esp, 0x1c
test eax, eax
jne 0x40287b
mov eax, dword [ebx + 0x1b34]
test eax, eax
je 0x40287b
push 1
lea ecx, [ebx + 0xb94]
call sub.MFC42u.DLL_CWnd::EnableWindow
cmp dword [ebp], 1
jne 0x402898
mov eax, dword [ebx + 0x1b34]
test eax, eax
je 0x402898
push 1
lea ecx, [ebx + 0x900]
call sub.MFC42u.DLL_CWnd::EnableWindow
cmp dword [ebp], 2
jne 0x4028b5
mov eax, dword [ebx + 0x1b34]
test eax, eax
je 0x4028b5
push 1
lea ecx, [ebx + 0x66c]
call sub.MFC42u.DLL_CWnd::EnableWindow
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x1aa0]
inc eax
add edx, 0x18
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jb 0x402810
jmp 0x402900
push 0
lea ecx, [ebx + 0xb94]
call sub.MFC42u.DLL_CWnd::EnableWindow
push 0
lea ecx, [ebx + 0x900]
call sub.MFC42u.DLL_CWnd::EnableWindow
push 0
lea ecx, [ebx + 0x66c]
call sub.MFC42u.DLL_CWnd::EnableWindow
mov ecx, dword [ebx + 0x49a0]
push ecx
lea ecx, [ebx + 0xe28]
call sub.MFC42u.DLL_CWnd::SetWindowTextW
mov eax, dword [ebx + 0x49a4]
cmp eax, 1
jne 0x402926
mov edx, dword [0x4167bc]
push edx
jmp 0x402946
cmp eax, 2
jne 0x402933
mov eax, dword [0x4167c0]
push eax
jmp 0x402946
cmp eax, 3
jne 0x402941
mov ecx, dword [0x4167c4]
push ecx
jmp 0x402946
push str.NULL
lea ecx, [ebx + 0xee4]
call sub.MFC42u.DLL_CWnd::SetWindowTextW
mov ecx, ebx
call fcn.00409bd0
push 1
lea ecx, [ebx + 0xfe0]
call sub.MFC42u.DLL_CWnd::EnableWindow
mov edx, dword [esp + 0x24]
mov dword [edx], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8