Function at 0x401c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x404753
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x409028]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
push str.PC3ExeRes.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [edi + 0xd0], esi
test esi, esi
jne 0x401ca3
push eax
push eax
push str.PC3ExeRes.dll_not_found
call sub.mfc90u.dll_AfxMessageBox
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sub.mfc90u.dll_AfxGetModuleState
mov dword [eax + 0xc], esi
call dword [sym.imp.UserData.dll_unsigned_int___stdcall_InstallUserData_void_]
test eax, eax
jne 0x401c8b
push eax
call sub.mfc90u.dll_AfxEnableControlContainer
add esp, 4
call sub.apperr.dll_HD_Create_App_Error_Handler
cmp dword [edi + 0xa8], 0
lea ebx, [edi + 0xa8]
mov esi, eax
je 0x401cf8
call dword [sym.imp.plotcfg10.dll_class_HT_SPMem_Pool____cdecl_SPMP_void_]
mov ecx, dword [ebx]
mov edx, dword [eax]
mov edx, dword [edx + 8]
push ecx
mov ecx, eax
call edx
test eax, eax
jne 0x401cf8
mov ecx, dword [ebx]
test ecx, ecx
je 0x401cf8
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
test esi, esi
je 0x401d0c
call dword [sym.imp.plotcfg10.dll_class_HT_SPMem_Pool____cdecl_SPMP_void_]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [esp + 0xa4]
push ecx
mov dword [ebx], esi
mov edx, dword [edi + 0x48]
push 0x405c10
push edx
call dword [sym.imp.MSVCR90.dll_wcstok_s]
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
call dword [0x405294]
mov dword [esp + 0xe0], 0
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jne 0x401dbd
mov ebx, dword [ebx]
push 0xb
lea ecx, [esp + 0x1c]
call dword [0x405294]
mov esi, eax
push 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 1
call dword [0x405294]
mov byte [esp + 0xe0], 2
mov ecx, dword [esi]
mov edx, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 8]
push 0
push 0x10
push ecx
push eax
mov ecx, ebx
call edx
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [esp + 0x1c]
call fcn.004019d0
push 0
push 0x4056d0
call dword [sym.imp.USER32.dll_FindWindowW]
push eax
call sub.mfc90u.dll_CWnd::FromHandle
mov esi, eax
test esi, esi
je 0x401e26
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov edx, dword [edi + 0xc8]
movzx eax, ax
movzx ecx, ax
mov eax, dword [esi + 0x20]
push 0
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
push eax
call dword [sym.imp.hcreg10.dll_hcreg_SetErrorHandler]
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call dword [sym.imp.hcreg10.dll_SetAppKey]
add esp, 4
test eax, eax
jne 0x401d9b
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.hcreg10.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetLogFileDirectory_void_]
add esp, 4
mov byte [esp + 0xe0], 3
mov eax, dword [eax]
mov edi, dword [sym.imp.heidi10.dll_public:_void___thiscall_HT_String::constructor_wchar_t_const__]
push eax
lea ecx, [esp + 0x30]
call edi
lea ecx, [esp + 0x48]
mov byte [esp + 0xe0], 5
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0x405c14
lea ecx, [esp + 0x30]
call dword [sym.imp.heidi10.dll_public:_void___thiscall_HT_String::concatenate_wchar_t_const__]
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 0x24]
push edx
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 1
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 0
call eax
mov esi, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.hcreg10.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetProductName_void_]
add esp, 4
mov byte [esp + 0xe0], 6
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xe0], 5
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov esi, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.hcreg10.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetProgramName_void_]
add esp, 4
mov byte [esp + 0xe0], 7
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x60]
mov ecx, esi
call eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xe0], 5
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov esi, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.hcreg10.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetCompanyName_void_]
add esp, 4
mov byte [esp + 0xe0], 8
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x64]
mov ecx, esi
call eax
mov byte [esp + 0xe0], 5
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
pxor xmm0, xmm0
movdqa xmmword [esp + 0x74], xmm0
movdqa xmmword [esp + 0x84], xmm0
movq qword [esp + 0x94], xmm0
mov dword [esp + 0x74], 0xb
mov dword [esp + 0x78], ecx
call sub.mfc90u.dll_AfxGetModuleState
mov edx, dword [eax + 8]
push 0x80
push 0xe
push 0x80
mov dword [esp + 0x90], edx
call sub.mfc90u.dll_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0xc
push 0x7f00
mov dword [esp + 0x94], eax
call sub.mfc90u.dll_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x94], 6
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0x4056d0
call sub.mfc90u.dll_AfxRegisterClass
test eax, eax
je 0x4020bc
mov esi, dword [esp + 0x20]
push 0x6c
mov dword [esi + 0xc4], 1
call sub.mfc90u.dll_new
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0xe0], 9
test eax, eax
je 0x402047
push 0x406020
push 0x4056ac
push 0x405f34
push 0x80
mov ecx, eax
call sub.mfc90u.dll_CSingleDocTemplate::CSingleDocTemplate
jmp 0x402049
xor eax, eax
push eax
mov ecx, esi
mov byte [esp + 0xe4], 5
call sub.mfc90u.dll_CWinApp::AddDocTemplate
lea ecx, [esp + 0xac]
mov dword [esi + 0x4c], 0
call fcn.00403710
lea ecx, [esp + 0xac]
push ecx
mov ecx, esi
mov byte [esp + 0xe4], 0xa
call sub.mfc90u.dll_CWinApp::ParseCommandLine
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xc8]
call dword [0x405264]
lea eax, [esp + 0xac]
push eax
mov ecx, esi
call sub.mfc90u.dll_CWinApp::ProcessShellCommand
test eax, eax
jne 0x4020f0
lea ecx, [esp + 0xac]
mov byte [esp + 0xe0], 5
call sub.mfc90u.dll_CCommandLineInfo::CCommandLineInfo
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], 0
call dword [sym.imp.heidi10.dll_public_virtual:_void___thiscall_HT_String::destructor_void_]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.hcreg10.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetDriverDirectory_void_]
add esp, 4
mov byte [esp + 0xe0], 0xb
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x6c]
call edi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe0], 0xd
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.hcreg10.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetPMPDirectory_void_]
add esp, 4
mov byte [esp + 0xe0], 0xe
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x60]
call edi
lea ecx, [esp + 0x44]
mov byte [esp + 0xe0], 0x10
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.hcreg10.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetPlotStylesDirectory_void_]
add esp, 4
mov byte [esp + 0xe0], 0x11
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x54]
call edi
lea ecx, [esp + 0x28]
mov byte [esp + 0xe0], 0x13
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp dword [esp + 0x70], 0
jle 0x4021a9
cmp dword [esp + 0x64], 0
jle 0x4021a9
cmp dword [esp + 0x58], 0
jg 0x40225d
mov dword [esp + 0x38], vtable.HT_String.0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0xffffffff
mov byte [esp + 0xe0], 0x14
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0x38]
push eax
call edx
lea ecx, [esp + 0x18]
call dword [0x4052c0]
lea ecx, [esp + 0x24]
call dword [0x4052c0]
mov byte [esp + 0xe0], 0x16
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::FormatMessageW]
push eax
lea ecx, [esp + 0x1c]
push 0xf
push ecx
call edi
mov eax, dword [esp + 0x48]
add esp, 0xc
push eax
push eax
lea edx, [esp + 0x2c]
push 0x10
push edx
call edi
mov edx, dword [esp + 0x28]
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
add esp, 0x10
push 0
push 0x10
push edx
mov edx, dword [esp + 0x30]
push edx
call eax
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0xe0], 0x13
mov edi, dword [sym.imp.heidi10.dll_public_virtual:_void___thiscall_HT_String::destructor_void_]
lea ecx, [esp + 0x38]
call edi
jmp 0x402263
mov edi, dword [sym.imp.heidi10.dll_public_virtual:_void___thiscall_HT_String::destructor_void_]
cmp dword [esi + 0xa4], 0
lea eax, [esi + 0xa4]
mov dword [esp + 0x18], eax
jne 0x4023b6
push 0xa4
call dword [sym.imp.heidi10.dll_public:_static_void____cdecl_HT_Object::operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov byte [esp + 0xe0], 0x17
test esi, esi
je 0x4022c5
push 0
push ecx
mov eax, ebx
mov edi, esp
mov dword [esp + 0xb0], esp
call fcn.00402fb0
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call sub.plcfmgr.dll_public:_void___thiscall_HT_Plot_Config_Manager::constructor_class_HT_String___class_HT_String___class_HT_String___class_HT_Smart_Pointer_class_HT_Error_Handler___unsigned_long_int_
jmp 0x4022c7
xor eax, eax
mov byte [esp + 0xe0], 0x13
mov esi, dword [esp + 0x18]
mov edi, eax
call fcn.00402fd0
mov ecx, esi
cmp dword [ecx], 0
jne 0x4023ac
mov ebx, dword [ebx]
push 0xd
lea ecx, [esp + 0x1c]
call dword [0x405294]
mov esi, eax
push 0xe
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x18
call dword [0x405294]
mov byte [esp + 0xe0], 0x19
mov esi, dword [esi]
mov eax, dword [eax]
mov edx, dword [ebx]
push 0
push 0x10
push esi
push eax
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0xe0], 0x10
mov esi, dword [sym.imp.heidi10.dll_public_virtual:_void___thiscall_HT_String::destructor_void_]
lea ecx, [esp + 0x50]
call esi
lea ecx, [esp + 0x5c]
mov byte [esp + 0xe0], 0xd
call esi
lea ecx, [esp + 0x68]
mov byte [esp + 0xe0], 0xa
call esi
lea ecx, [esp + 0xac]
mov byte [esp + 0xe0], 5
call sub.mfc90u.dll_CCommandLineInfo::CCommandLineInfo
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], 0
call esi
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.heidi10.dll_public_virtual:_void___thiscall_HT_String::destructor_void_]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push ecx
push esi
xor ecx, ecx
call fcn.00402440
lea ecx, [esp + 0x50]
mov byte [esp + 0xe0], 0x10
call edi
lea ecx, [esp + 0x5c]
mov byte [esp + 0xe0], 0xd
call edi
lea ecx, [esp + 0x68]
mov byte [esp + 0xe0], 0xa
call edi
lea ecx, [esp + 0xac]
mov byte [esp + 0xe0], 5
call sub.mfc90u.dll_CCommandLineInfo::CCommandLineInfo
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], 0
call edi
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 1
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret