Function at 0x401bf0
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x40334c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3b4
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
mov dword [esp + 0x3c], 0x40449c
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
push 0xe1b9
push 0x8a
push 0x406064
mov dword [esp + 0x3d8], ebx
call fcn.00401300
add esp, 4
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
call fcn.00401560
push eax
mov ecx, 0x4061e0
mov byte [esp + 0x3d0], 1
call fcn.00402d3c
lea ecx, [esp + 0x10]
mov byte [esp + 0x3cc], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xb8]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x3d0], 2
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x2c0]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c0]
push edx
push 0x104
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0xb8]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x24]
push 0x5c
mov byte [esp + 0x3d0], 3
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea edx, [esp + 0x10]
dec esi
lea ecx, [esp + 0x24]
push esi
push edx
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, 0x4061e4
mov byte [esp + 0x3d0], 4
call fcn.00402d3c
mov byte [esp + 0x3cc], 3
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push 0x4061e4
lea eax, [esp + 0x14]
push 0x406060
push eax
call sub.MFC42.DLL_operator_2
push eax
mov ecx, 0x4061e4
mov byte [esp + 0x3d0], 5
call fcn.00402d3c
lea ecx, [esp + 0x10]
mov byte [esp + 0x3cc], 3
call sub.MFC42.DLL_CString::CString
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1bc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1bc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x1bc]
mov ecx, 0x4061dc
push edx
call sub.MFC42.DLL_CString::operator
push 0x4061e4
lea eax, [esp + 0x14]
push 0x4061dc
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3d0], 6
call fcn.00402d3c
lea ecx, [esp + 0x10]
mov byte [esp + 0x3cc], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x3cc], 7
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3cc], 8
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x3cc], 9
call sub.MFC42.DLL_CString::CString_2
push 0xe1b9
push 0x87
push 0x406064
mov byte [esp + 0x3d8], 0xa
call fcn.00401300
add esp, 4
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x44]
call fcn.00401560
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3cc], 0xb
call sub.MFC42.DLL_CString::CString_2
xor esi, esi
mov byte [esp + 0x3cc], 0xc
xor edi, edi
push esi
push 0x20
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x401ec2
lea edx, [esp + 0x50]
push esi
push edx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3d0], 0xd
call fcn.00402d3c
mov byte [esp + 0x3cc], 0xc
lea ecx, [esp + 0x50]
jmp 0x401ef2
sub eax, esi
lea ecx, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push esi
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3d0], 0xe
call fcn.00402d3c
mov byte [esp + 0x3cc], 0xc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, edi
sub eax, ebx
lea esi, [ecx + 1]
je 0x401f34
dec eax
je 0x401f1f
dec eax
jne 0x401f55
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push edx
call fcn.00402d3c
mov edi, 3
jmp 0x401f55
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
call fcn.00402d3c
mov edi, 2
jmp 0x401f55
lea ecx, [esp + 0x1c]
mov edi, 1
push ecx
lea ecx, [esp + 0x34]
call fcn.00402d3c
lea edx, [esp + 0x30]
lea ecx, [esp + 0x28]
push edx
call fcn.00402d3c
cmp dword [esp + 0x10], 0xffffffff
jne 0x401e7e
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00402ce8
mov ecx, ebp
call fcn.004024b0
cmp eax, ebx
je 0x402045
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00402ce8
push 0x85
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x40605c
mov byte [esp + 0x3dc], 0xf
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
mov byte [esp + 0x3d8], 0xc
call fcn.004023a0
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x54]
push 0xa
push eax
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00402ce8
mov ecx, ebp
call fcn.00402580
push eax
call dword [sym.imp.MSVCRT.dll__itoa]
mov esi, dword [esp + 0x34]
add esp, 0xc
lea edi, [esp + 0x54]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x40202b
cmp al, bl
je 0x402027
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x40202b
add esi, 2
add edi, 2
cmp al, bl
jne 0x402003
xor eax, eax
jmp 0x402030
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jg 0x402160
mov eax, dword [esp + 0x18]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.yincang
push ecx
call esi
add esp, 8
test eax, eax
jne 0x402168
mov edx, dword [0x4061e0]
push ebx
push ebx
push ebx
push ebx
push edx
lea ecx, [ebp + 0x60]
call fcn.00402b90
mov eax, dword [ebp + 0x20]
push ebx
push 0xbb8
push 1
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3cc], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x3cc], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x3cc], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3cc], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x3cc], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x3cc], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x3cc], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x3cc], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3cc], 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], 0x40449c
mov eax, dword [esp + 0x40]
mov byte [esp + 0x3cc], 0x11
cmp eax, ebx
je 0x40226a
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
je 0x402261
lea esi, [eax + 4]
lea edi, [ecx]
mov ecx, esi
call sub.MFC42.DLL_CString::CString
add esi, 8
dec edi
jne 0x40214e
jmp 0x40225d
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov edx, dword [esp + 0x34]
push 0x406050
push edx
call esi
add esp, 8
test eax, eax
jne 0x40229f
mov eax, dword [ebp + 0x20]
push ebx
push 0xbb8
push 4
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3cc], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x3cc], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x3cc], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3cc], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x3cc], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x3cc], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x3cc], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x3cc], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3cc], 0x12
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], 0x40449c
mov eax, dword [esp + 0x40]
mov byte [esp + 0x3cc], 0x13
cmp eax, ebx
je 0x40226a
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
je 0x402261
lea esi, [eax + 4]
lea edi, [ecx]
mov ecx, esi
call sub.MFC42.DLL_CString::CString
add esi, 8
dec edi
jne 0x402250
mov eax, dword [esp + 0x40]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], 0x404488
mov dword [esp + 0x3cc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c0
ret
mov ecx, ebp
call fcn.004026b0
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
mov eax, dword [esp + 4]
and eax, 0xfff0
cmp eax, 0x10
je 0x4022c3
call sub.MFC42.DLL_CWnd::Default
ret 8