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

Disassembly:
sub esp, 0x2f4
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 0x403c78
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x74]
cmp byte [edx], 0x22
jne 0x403c44
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 0x403e15
lea ecx, [esp + 0x104]
push 0x200
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x104]
push 0x416044
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x403cd1
push eax
push eax
push 0x41607c
mov ecx, 0x420d30
call fcn.00405c40
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 0x403e2a
cmp eax, 0x7a120
ja 0x403e2a
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 0x403de1
push ebx
push 4
lea edx, [esp + 0x1d]
push 1
push edx
call esi
push ebx
push 0xe8
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
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]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403dd1
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
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 + 0x108]
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, 0x2f4
ret
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, 0x420d30
push 0
push 0
push 0x41607c
call fcn.00405c40
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
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [0x420d2c]
inc ecx
cmp eax, 1
mov dword [0x420d2c], ecx
jne case.0x403e8c.4
mov eax, dword [esi + 0x19498]
cmp eax, 0xc
ja case.0x403e8c.4
xor ecx, ecx
mov cl, byte [eax + 0x403f00]
jmp dword [ecx*4 + 0x403eec]
push 1
mov ecx, esi
call fcn.00403f10
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.00404580
call edi
pop edi
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
pop esi
ret 4
mov eax, dword [0x420d2c]
mov ecx, 0x3c
cdq
idiv ecx
test edx, edx
jne case.0x403e8c.4
push 1
mov ecx, esi
call fcn.00404580
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
pop esi
ret 4