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

Disassembly:
sub esp, 0x610
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
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 0x403ce0
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x74]
cmp byte [edx], 0x22
jne 0x403ca8
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, [esi + 0x198c4]
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 ecx, dword [esp + 0x10]
mov dword [ecx + 0x19ac4], 0
jmp 0x403e9c
lea edx, [esp + 0x420]
push 0x200
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [esp + 0x420]
push 0x419044
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x403d39
push eax
push eax
push str.erropen
mov ecx, 0x422b58
call fcn.00405c60
push eax
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, esi
call sub.MFC42.DLL_CDialog::OnOK
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebx
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
add eax, 0xfffffffc
push 0
push eax
push ebx
call edi
push ebx
lea ebp, [esi + 0x19ac4]
push 4
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ebp]
add esp, 0x2c
cmp eax, 0xc350
jb 0x403eb5
cmp eax, 0x7a120
ja 0x403eb5
lea edi, [esp + 0x420]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esi + 0x198c4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
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]
mov ecx, dword [ebp]
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 5
lea edx, [esp + 0x28]
push 1
push edx
mov byte [esp + 0x30], 0x53
call esi
mov eax, dword [esp + 0x31]
add esp, 0x1c
and eax, 0x1c0
cmp eax, 0x140
jne 0x403e92
push ebx
push 4
lea ecx, [esp + 0x21]
push 1
push ecx
call esi
mov edx, dword [esp + 0x29]
push ebx
push edx
lea eax, [esp + 0x38]
push 1
push eax
call esi
lea edi, [esp + 0x40]
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, 0x422834
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x10c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x422874
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 + 0x108]
lea edi, [esp + 0x20]
mov dword [0x422a74], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [0x422a78], edx
je 0x403e85
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [ebp], eax
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x19898], 0xb
pop ebx
add esp, 0x610
ret
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, esi
call sub.MFC42.DLL_CDialog::OnOK
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [0x422b54]
inc ecx
cmp eax, 1
mov dword [0x422b54], ecx
jne case.0x403efc.4
mov eax, dword [esi + 0x19898]
cmp eax, 0xc
ja case.0x403efc.4
xor ecx, ecx
mov cl, byte [eax + 0x403f70]
jmp dword [ecx*4 + 0x403f5c]
push 1
mov ecx, esi
call fcn.00403f80
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.004045a0
call edi
pop edi
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
pop esi
ret 4
mov eax, dword [0x422b54]
mov ecx, 0x3c
cdq
idiv ecx
test edx, edx
jne case.0x403efc.4
push 1
mov ecx, esi
call fcn.004045a0
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
pop esi
ret 4