Function at 0x406670
Capabilities:
Create process on windows
Create process suspended
Read file on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x40e251
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_3
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c4]
mov dx, word [ebp + 0x1a40]
rep stosd dword es:[edi], eax
mov dword [esp + 0x40], eax
mov esi, 0x44
mov dword [esp + 0x44], eax
mov dword [esp + 0x4a0], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x49a4]
cmp eax, 1
mov byte [esp + 0x94], 0
mov dword [esp + 0x1c4], esi
mov dword [esp + 0x7c], edx
jne 0x406a05
or ecx, 0xffffffff
mov edi, str.KHGui.exe
xor eax, eax
lea ebx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x20], al
mov esi, edi
mov edi, ebx
mov ebx, ecx
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
lea ebx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4162c0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
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
lea ebx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4162bc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
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
lea ebx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4162c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov dword [esp + 0x21], ecx
mov dword [esp + 0x25], ecx
mov dword [esp + 0x29], ecx
mov dword [esp + 0x2d], ecx
mov word [esp + 0x31], cx
mov byte [esp + 0x33], cl
and edx, 0xffff
push edx
lea edx, [esp + 0x24]
push 0x416158
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x94]
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
lea edx, [esp + 0x94]
and ecx, 3
mov byte [esp + 0x290], al
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4162b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
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
push 0
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x29d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x29c]
stosb byte es:[edi], al
mov eax, dword [ebp + 0x49c4]
push ecx
push 0xffffffffffffffff
push eax
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edi, [esp + 0x290]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
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
lea eax, [esp + 0x40]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c4]
push eax
push ecx
push 0
push 0
push 0x10
push 0
push 0
lea edx, [esp + 0xb0]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407bb7
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406992
test ebp, ebp
je 0x4069af
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x4069af
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
push 6
shr ebx, 0x1c
push esi
and bl, 1
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0x2c
push ecx
push esi
call dword [sym.imp.ExtUI.dll_public:_static_bool___cdecl_CExtNcFrameImpl::stat_GetWindowPlacement_struct_HWND_____struct_tagWINDOWPLACEMENT__]
mov eax, dword [esp + 0x60]
mov edi, 6
add esp, 8
cmp eax, edi
jne 0x406968
test bl, bl
jne 0x4069af
mov edx, dword [ebp + 0xfc]
add ebp, 0xfc
mov ecx, ebp
call dword [edx + 0x3c]
test al, al
je 0x4069af
lea eax, [esp + 0x50]
mov dword [esp + 0x58], edi
push eax
push esi
call dword [sym.imp.ExtUI.dll_public:_static_bool___cdecl_CExtNcFrameImpl::stat_SetWindowPlacement_struct_HWND_____struct_tagWINDOWPLACEMENT_const__]
add esp, 8
jmp 0x4069af
call sub.MFC42u.DLL_AfxGetThread
test eax, eax
je 0x4069a4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4069a6
xor eax, eax
push 6
mov ecx, eax
call sub.MFC42u.DLL_CWnd::ShowWindow
mov eax, dword [esp + 0x40]
or esi, 0xffffffff
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
jne 0x4069ce
mov dword [esp + 0x4a0], esi
jmp 0x407bc2
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4069ee
mov dword [esp + 0x4a0], esi
jmp 0x407bc2
mov eax, dword [esp + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x40]
push ecx
jmp 0x407bb5
cmp eax, 2
jne 0x406d26
or ecx, 0xffffffff
mov edi, str.KHGui.exe
xor eax, eax
lea ebx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x20], al
mov esi, edi
mov edi, ebx
mov ebx, ecx
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
lea ebx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4162c0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
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
lea ebx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.0_1
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
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
lea ebx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4162c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
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 dword [esp + 0x21], eax
mov ecx, ebx
mov dword [esp + 0x25], eax
and ecx, 3
mov dword [esp + 0x29], eax
and edx, 0xffff
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x33], al
push edx
lea ecx, [esp + 0x24]
push 0x416158
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x94]
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
lea edx, [esp + 0x94]
and ecx, 3
mov byte [esp + 0x290], al
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4162b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
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
push 0
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x29d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x29c]
stosb byte es:[edi], al
mov eax, dword [ebp + 0x49c4]
push ecx
push 0xffffffffffffffff
push eax
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edi, [esp + 0x290]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
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
lea eax, [esp + 0x40]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c8]
lea edx, [esp + 0x98]
push ecx
push 0
push 0
push 0x10
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407bb7
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406ca1
test ebp, ebp
je 0x406cbe
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x406cbe
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
push 6
shr ebx, 0x1c
push esi
and bl, 1
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0x2c
push ecx
push esi
call dword [sym.imp.ExtUI.dll_public:_static_bool___cdecl_CExtNcFrameImpl::stat_GetWindowPlacement_struct_HWND_____struct_tagWINDOWPLACEMENT__]
mov eax, dword [esp + 0x60]
mov edi, 6
add esp, 8
cmp eax, edi
jne 0x406c79
test bl, bl
jne 0x406cbe
mov edx, dword [ebp + 0xfc]
lea ecx, [ebp + 0xfc]
call dword [edx + 0x3c]
test al, al
je 0x406cbe
lea eax, [esp + 0x50]
mov dword [esp + 0x58], edi
push eax
push esi
call dword [sym.imp.ExtUI.dll_public:_static_bool___cdecl_CExtNcFrameImpl::stat_SetWindowPlacement_struct_HWND_____struct_tagWINDOWPLACEMENT_const__]
add esp, 8
jmp 0x406cbe
call sub.MFC42u.DLL_AfxGetThread
test eax, eax
je 0x406cb3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x406cb5
xor eax, eax
push 6
mov ecx, eax
call sub.MFC42u.DLL_CWnd::ShowWindow
mov eax, dword [esp + 0x40]
or esi, 0xffffffff
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
jne 0x406cdd
mov dword [esp + 0x4a0], esi
jmp 0x407bc2
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x406cfd
mov dword [esp + 0x4a0], esi
jmp 0x407bc2
mov eax, dword [esp + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x40]
push ecx
call esi
mov ebp, dword [ebp + 0x49c0]
push ebp
call dword [sym.imp.MSVCRT.dll__wunlink]
add esp, 4
jmp 0x407bb7
cmp eax, 3
jne 0x407bb7
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x208]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x11
lea edi, [esp + 0x24c]
mov dword [esp + 0x208], esi
mov dword [esp + 0x50], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x24c], esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x64], eax
lea esi, [ebp + 0x1874]
mov dword [esp + 0x58], edx
mov dword [esp + 0x68], eax
lea ecx, [ebp + 0xb94]
push esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x70], eax
call sub.MFC42u.DLL_CWnd::GetWindowTextW
push 3
push 0
mov ecx, esi
call sub.MFC42u.DLL_CString::Delete
lea edi, [ebp + 0x1878]
lea ecx, [ebp + 0x900]
push edi
call sub.MFC42u.DLL_CWnd::GetWindowTextW
push 3
push 0
mov ecx, edi
call sub.MFC42u.DLL_CString::Delete
lea ebx, [ebp + 0x187c]
lea ecx, [ebp + 0x66c]
push ebx
call sub.MFC42u.DLL_CWnd::GetWindowTextW
push 3
push 0
mov ecx, ebx
call sub.MFC42u.DLL_CString::Delete
cmp byte [ebp + 0x1b45], 0x55
je 0x406f0a
cmp dword [ebp + 0x1aa0], 2
jb 0x406ebb
lea ecx, [ebp + 0xb94]
mov dword [esp + 0x18], 0
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x406e2f
lea ecx, [ebp + 0x900]
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x406e2f
mov eax, dword [edi]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x406e2f
mov dword [esp + 0x18], 1
lea ecx, [ebp + 0xb94]
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x406e68
lea ecx, [ebp + 0x66c]
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x406e68
mov eax, dword [ebx]
mov edx, dword [esi]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x406e68
mov dword [esp + 0x18], 1
lea ecx, [ebp + 0x900]
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x406e99
lea ecx, [ebp + 0x66c]
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x406e99
mov eax, dword [ebx]
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x406ea1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x406ebb
mov ecx, dword [0x416814]
push 0x10
push str.EVSimulator_Message
push ecx
mov ecx, ebp
call sub.MFC42u.DLL_CWnd::MessageBoxW
jmp 0x407bb7
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push ebx
call fcn.0040d1ee
push ecx
mov byte [esp + 0x4a8], 1
mov ecx, esp
mov dword [esp + 0x40], esp
push edi
call fcn.0040d1ee
push ecx
mov byte [esp + 0x4ac], 2
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
call fcn.0040d1ee
mov ecx, ebp
mov byte [esp + 0x4ac], 0
call fcn.0040a220
cmp byte [ebp + 0x1b45], 0x55
jne 0x406f31
push 0
lea ecx, [ebp + 0xb94]
call sub.MFC42u.DLL_CWnd::EnableWindow
push 0
lea ecx, [ebp + 0x900]
call sub.MFC42u.DLL_CWnd::EnableWindow
push 0
lea ecx, [ebp + 0x66c]
call sub.MFC42u.DLL_CWnd::EnableWindow
push 1
push 0x104
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x406f51
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp + 0x49b8]
push 0x41614c
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x406f7f
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x407bb7
mov eax, dword [ebp + 0x1b94]
push 0
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 4
lea ecx, [esp + 0x48]
push 1
push ecx
mov dword [esp + 0x50], 0
call edi
mov edx, dword [esp + 0x50]
lea eax, [edx*4]
push eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esp + 0x54]
push ebx
mov esi, eax
push 4
push ecx
push esi
mov dword [esp + 0x48], esi
call edi
add esp, 0x30
lea ecx, [ebp + 0xb94]
mov dword [esp + 0x14], 0
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x406fed
mov dword [esp + 0x14], 1
lea ecx, [ebp + 0x900]
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x407000
inc dword [esp + 0x14]
lea ecx, [ebp + 0x66c]
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x407013
inc dword [esp + 0x14]
cmp byte [ebp + 0x1b45], 0x55
jne 0x40702d
mov edx, dword [ebp + 0x49ac]
mov ax, word [esp + 0x34]
mov word [edx + 0x26], ax
jmp 0x40703c
mov ecx, dword [ebp + 0x49ac]
mov dx, word [esp + 0x14]
mov word [ecx + 0x26], dx
lea ecx, [ebp + 0xb94]
mov dword [esp + 0x14], 0
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x4070b8
mov eax, dword [esi]
push 0
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
lea esi, [ebp + 0x1b44]
push 0x20
push 1
push esi
call edi
mov al, byte [esi]
add esp, 0x1c
test al, al
je 0x407096
mov ecx, dword [esp + 0x18]
push 0
mov edx, dword [ecx + 4]
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 0x20
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
mov edi, dword [ebp + 0x49ac]
mov ecx, 8
add edi, 0x30
mov dword [esp + 0x14], 1
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
mov esi, dword [esp + 0x18]
lea ecx, [ebp + 0x900]
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x40713e
mov eax, dword [esi + 4]
push 0
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
lea esi, [ebp + 0x1b44]
push 0x20
push 1
push esi
call edi
mov al, byte [esi]
add esp, 0x1c
cmp al, 1
jne 0x4070fe
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x49ac]
shl ecx, 5
lea edi, [ecx + edx + 0x30]
jmp 0x40712e
mov eax, dword [esp + 0x18]
push 0
mov ecx, dword [eax]
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 0x20
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0x49ac]
add esp, 0x1c
shl edx, 5
lea edi, [edx + eax + 0x30]
mov eax, dword [esp + 0x14]
mov ecx, 8
inc eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
lea ecx, [ebp + 0x66c]
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x40718b
mov ecx, dword [esp + 0x18]
push 0
mov edx, dword [ecx + 8]
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
lea esi, [ebp + 0x1b44]
push 0x20
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x49ac]
add esp, 0x1c
shl eax, 5
lea edi, [eax + ecx + 0x30]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp + 0x1b45], 0x55
jne 0x40724d
mov ecx, dword [esp + 0x34]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x14], eax
jle 0x40724d
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], 4
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x1b94]
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
add edx, eax
push 0
push edx
push ebx
call edi
mov esi, dword [esp + 0x44]
push ebx
push 4
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
mov ecx, ebp
push esi
call fcn.00403b10
push 0
push eax
push ebx
call edi
push ebx
push 0x20
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ebp + 0x49ac]
mov edx, dword [esp + 0x58]
mov ecx, 8
lea edi, [ebp + 0x1b44]
rep movsd dword es:[edi], dword [esi]
lea edi, [edx + eax + 0x30]
mov eax, dword [esp + 0x30]
mov ecx, 8
lea esi, [ebp + 0x1b44]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
add esp, 0x1c
inc eax
add edi, 4
add edx, 0x20
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x3c], edx
jl 0x4071b6
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
or ecx, 0xffffffff
mov edi, str.EVComserver.exe
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x94]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4162c0
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
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4162bc
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0xb94]
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
mov ebx, dword [sym.imp.MSVCRT.dll__wtoi]
test eax, eax
je 0x407381
mov edi, 0x4162c0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x1874]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
xor ecx, ecx
push eax
mov dword [esp + 0x29], ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x2d], ecx
push 0x416158
mov dword [esp + 0x35], ecx
push edx
mov dword [esp + 0x3d], ecx
mov byte [esp + 0x30], 0
mov word [esp + 0x41], cx
mov byte [esp + 0x43], cl
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edi, [esp + 0x20]
lea edx, [esp + 0x94]
jmp 0x4073d6
lea ecx, [ebp + 0xb94]
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
jne 0x4073fb
cmp byte [ebp + 0x1b45], 0x55
je 0x4073fb
mov edi, 0x4162c0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.0_1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp + 0x900]
mov ecx, esi
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x407487
mov edi, 0x4162c0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x1878]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
xor ecx, ecx
push eax
mov dword [esp + 0x29], ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x2d], ecx
push 0x416158
mov dword [esp + 0x35], ecx
push edx
mov dword [esp + 0x3d], ecx
mov byte [esp + 0x30], 0
mov word [esp + 0x41], cx
mov byte [esp + 0x43], cl
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edi, [esp + 0x20]
lea edx, [esp + 0x94]
jmp 0x4074d8
mov ecx, esi
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
jne 0x4074fd
cmp byte [ebp + 0x1b45], 0x55
je 0x4074fd
mov edi, 0x4162c0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.0_1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp + 0x66c]
mov ecx, esi
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
je 0x407589
mov edi, 0x4162c0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x187c]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
xor ecx, ecx
push eax
mov dword [esp + 0x29], ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x2d], ecx
push 0x416158
mov dword [esp + 0x35], ecx
push edx
mov dword [esp + 0x3d], ecx
mov byte [esp + 0x30], 0
mov word [esp + 0x41], cx
mov byte [esp + 0x43], cl
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edi, [esp + 0x20]
lea edx, [esp + 0x94]
jmp 0x4075da
mov ecx, esi
call sub.MFC42u.DLL_CWnd::IsWindowEnabled
test eax, eax
jne 0x4075ff
cmp byte [ebp + 0x1b45], 0x55
je 0x4075ff
mov edi, 0x4162c0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
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
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.0_1
or ecx, 0xffffffff
xor eax, eax
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4162c0
xor eax, eax
mov byte [ebp + 0x1b45], 0x55
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x94]
mov esi, edi
mov ebx, ecx
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4162a0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4162c0
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
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.0_1
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
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4162c0
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
mov byte [esp + 0x394], al
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x399]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea ecx, [esp + 0x39c]
stosb byte es:[edi], al
mov eax, dword [ebp + 0x49c4]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0x200
push 0
call ebx
lea edi, [esp + 0x394]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x50]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20c]
lea edx, [esp + 0x98]
push ecx
push 0
push 0
push 8
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407bb7
or ecx, 0xffffffff
mov edi, str.KHGui.exe
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x94], 0
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x94]
and ecx, 3
mov byte [esp + 0x80], al
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4162c0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41629c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4162c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x81], eax
mov ecx, edx
mov dword [esp + 0x85], eax
and ecx, 3
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov word [esp + 0x91], ax
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x93], al
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x80]
and eax, 0xffff
push eax
push 0x416158
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x94]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x94]
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4162b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x104
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x3a0]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x49c4]
lea ecx, [esp + 0x3a0]
push ecx
push 0xffffffffffffffff
push eax
push 0x200
push 0
call ebx
lea edi, [esp + 0x394]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
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
lea eax, [esp + 0x60]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x250]
push ecx
push 0
push 0
push 0x10
push 0
push 0
lea edx, [esp + 0xb0]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407bb7
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407a55
test ebp, ebp
je 0x407a72
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x407a72
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
push 6
shr ebx, 0x1c
push esi
and bl, 1
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x198]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x198]
mov dword [esp + 0x198], 0x2c
push ecx
push esi
call dword [sym.imp.ExtUI.dll_public:_static_bool___cdecl_CExtNcFrameImpl::stat_GetWindowPlacement_struct_HWND_____struct_tagWINDOWPLACEMENT__]
mov eax, dword [esp + 0x1a8]
mov edi, 6
add esp, 8
cmp eax, edi
jne 0x407a27
test bl, bl
jne 0x407a72
mov edx, dword [ebp + 0xfc]
lea ecx, [ebp + 0xfc]
call dword [edx + 0x3c]
test al, al
je 0x407a72
lea eax, [esp + 0x198]
mov dword [esp + 0x1a0], edi
push eax
push esi
call dword [sym.imp.ExtUI.dll_public:_static_bool___cdecl_CExtNcFrameImpl::stat_SetWindowPlacement_struct_HWND_____struct_tagWINDOWPLACEMENT_const__]
add esp, 8
jmp 0x407a72
call sub.MFC42u.DLL_AfxGetThread
test eax, eax
je 0x407a67
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x407a69
xor eax, eax
push 6
mov ecx, eax
call sub.MFC42u.DLL_CWnd::ShowWindow
mov eax, dword [esp + 0x60]
push 0xdbba0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x407a95
mov dword [esp + 0x4a0], ebx
jmp 0x407bc2
cmp eax, 0x102
jne 0x407b40
mov edx, dword [esp + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [esp + 0x1c]
push ecx
push edx
call edi
test eax, eax
jne 0x407ac2
mov dword [esp + 0x4a0], ebx
jmp 0x407bc2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push ecx
call ebx
test eax, eax
je 0x407bb7
mov edx, dword [esp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x60]
push eax
call esi
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x1c]
push ecx
push edx
call edi
test eax, eax
je 0x407bb7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
push eax
push ecx
call ebx
test eax, eax
je 0x407bb7
mov edx, dword [esp + 0x54]
push edx
call esi
mov eax, dword [esp + 0x50]
push eax
call esi
mov ecx, dword [0x416818]
push 0x1010
push str.EVSimulator_Message
push ecx
mov ecx, ebp
call sub.MFC42u.DLL_CWnd::MessageBoxW
jmp 0x407bb7
mov eax, dword [esp + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
test eax, eax
jne 0x407b5f
mov dword [esp + 0x4a0], ebx
jmp 0x407bc2
mov ecx, dword [esp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x60]
push edx
call esi
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x1c]
push eax
push ecx
call edi
test eax, eax
jne 0x407b8c
mov dword [esp + 0x4a0], ebx
jmp 0x407bc2
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x407ba9
mov dword [esp + 0x4a0], ebx
jmp 0x407bc2
mov ecx, dword [esp + 0x54]
push ecx
call esi
mov edx, dword [esp + 0x50]
push edx
call esi
mov dword [esp + 0x4a0], 0xffffffff
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x498]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x494
ret