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

Disassembly:
sub esp, 0x2fc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
or ecx, 0xffffffff
mov edi, dword [eax + 0x74]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403cb8
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x74]
cmp byte [edx], 0x22
jne 0x403c84
inc edx
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx - 1], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x194c4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x196c4], 0
jmp 0x403e6f
lea ecx, [esp + 0x10c]
push 0x200
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10c]
push 0x416044
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x403d11
push eax
push eax
push str.erropen
mov ecx, 0x420d38
call fcn.00405ca0
push eax
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, ebp
call sub.MFC42.DLL_CDialog::OnOK
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
add eax, 0xfffffffc
push 0
push eax
push ebx
call esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
lea edi, [ebp + 0x196c4]
push 4
push 1
push edi
call esi
mov eax, dword [edi]
add esp, 0x2c
cmp eax, 0xc350
jb 0x403e84
cmp eax, 0x7a120
ja 0x403e84
push 0
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 5
lea eax, [esp + 0x24]
push 1
push eax
mov byte [esp + 0x2c], 0x53
call esi
mov ecx, dword [esp + 0x2d]
add esp, 0x1c
and ecx, 0x1c0
cmp ecx, 0x140
jne 0x403e3b
push ebx
push 4
lea edx, [esp + 0x1d]
push 1
push edx
call esi
push ebx
push 0xf0
lea eax, [esp + 0x34]
push 1
push eax
call esi
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x420a14
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x108]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x420a54
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x104]
lea edi, [esp + 0x1c]
mov dword [0x420c54], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [0x420c58], edx
je 0x403e2b
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [ebp + 0x196c4], eax
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x194c4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov dword [ebp + 0x19498], 0xb
pop esi
pop ebp
pop ebx
add esp, 0x2fc
ret
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, 0x420d38
push 0
push 0
push str.erropen
call fcn.00405ca0
push eax
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, ebp
call sub.MFC42.DLL_CDialog::OnOK
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [0x420d34]
inc ecx
cmp eax, 1
mov dword [0x420d34], ecx
jne case.0x403eec.4
mov eax, dword [esi + 0x19498]
cmp eax, 0xc
ja case.0x403eec.4
xor ecx, ecx
mov cl, byte [eax + 0x403f60]
jmp dword [ecx*4 + 0x403f4c]
push 1
mov ecx, esi
call fcn.00403f70
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
pop esi
ret 4
push edi
mov edi, dword [sym.imp.MSVCRT.dll_clock]
call edi
push 0
mov ecx, esi
call fcn.004045e0
call edi
pop edi
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
pop esi
ret 4
mov eax, dword [0x420d34]
mov ecx, 0x3c
cdq
idiv ecx
test edx, edx
jne case.0x403eec.4
push 1
mov ecx, esi
call fcn.004045e0
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
pop esi
ret 4