Function at 0x4012a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4069a1
push eax
mov dword fs:[0], esp
sub esp, 0x530
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 + 0x338]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x334]
push 0x104
push eax
push ebx
call esi
lea ecx, [esp + 0x334]
push 0x4aa298
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
cmp eax, ebx
jne 0x40131b
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 + 0x43c]
push 0x104
push edx
push ebx
call esi
lea eax, [esp + 0x43c]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::CString
push 0x2e
lea ecx, [esp + 0x18]
mov dword [esp + 0x54c], ebx
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
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 + 0x54c], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x548], bl
call fcn.00406240
push 0x2e
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
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 + 0x54c], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x548], bl
call fcn.00406240
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x130]
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 + 0x130]
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 0x401454
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [esp + 0x22]
lea eax, [esp + 0x130]
push edx
push eax
call esi
test eax, eax
je 0x401454
lea ecx, [esp + 0x20]
lea edx, [esp + 0x130]
push ecx
push edx
call esi
test eax, eax
jne 0x40164f
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x235]
mov byte [esp + 0x234], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.SHGetSpecialFolderPathA
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 + 0x238]
push 0x1a
push ecx
push ebx
call eax
push str.EEB0F
push 0x1b000
push 0x48f22c
call fcn.00401150
mov edi, 0x4aa288
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x4aa284
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, 0x4aa284
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
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, 0x4aa288
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 + 0x22], 0x36
push ecx
mov byte [esp + 0x27], bl
mov byte [esp + 0x1a], 0x33
mov byte [esp + 0x1b], bl
call ebp
push eax
push 0x1a
call fcn.004011a0
add esp, 0xc
add eax, 0x41
lea edx, [esp + 0x16]
push eax
push edx
call ebp
push eax
push 0x1a
call fcn.004011a0
add esp, 0xc
add eax, 0x61
push eax
lea eax, [esp + 0x1e]
push eax
call ebp
push eax
push 0x1a
call fcn.004011a0
add esp, 0xc
add eax, 0x41
lea ecx, [esp + 0x1e]
push eax
push ecx
call ebp
push eax
push 0x1a
call fcn.004011a0
add esp, 0xc
add eax, 0x41
lea edx, [esp + 0x244]
push eax
push edx
lea eax, [esp + 0x44]
push str._s_c_c_c_c_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x1b000
lea ecx, [esp + 0x50]
push 0x48f22c
push ecx
call fcn.004011e0
add esp, 0x2c
lea edx, [esp + 0x2c]
push 2
push edx
call dword [0x4aa96c]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x1e]
push str.EEB0F
push ecx
mov edi, eax
mov byte [esp + 0x20], 0x5f
mov byte [esp + 0x21], 0x32
mov byte [esp + 0x22], bl
call ebp
add esp, 4
lea edx, [esp + 0x1c]
push eax
push 0x84200
push 0x40b02c
push edx
call edi
cmp esi, ebx
je 0x40164f
cmp edi, ebx
je 0x401648
lea eax, [esp + 0x12]
lea ecx, [esp + 0x24]
push eax
push 1
push 0x84200
push 0x40b02c
push ecx
mov byte [esp + 0x38], 0x4d
mov byte [esp + 0x39], 0x61
mov byte [esp + 0x3a], 0x69
mov byte [esp + 0x3b], 0x6e
mov byte [esp + 0x3c], bl
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x14]
mov dword [esp + 0x548], 0xffffffff
call fcn.00406240
mov ecx, dword [esp + 0x540]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x53c
ret