Function at 0x40a0b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40de92
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x418014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x418d70]
mov ecx, 0x418d70
call dword [eax + 0x7c]
mov ecx, dword [edi + 0xec]
mov dword [ebp - 0x228], ecx
mov ecx, eax
call fcn.004066a0
push ecx
push 0
push dword [edi + 0xcc]
mov ecx, edi
call fcn.004096e0
mov ebx, dword [sym.imp.mfc140u.dll_operator_2]
push 4
call ebx
mov esi, eax
add esp, 4
mov dword [ebp - 0x224], esi
test esi, esi
je 0x40a131
mov dword [esi], 0
jmp 0x40a133
xor esi, esi
push 0x18
mov dword [edi + 0xf8], esi
call ebx
add esp, 4
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40a15b
mov ecx, eax
call dword [sym.imp.mkeutlcl.dll_public:_void___thiscall_MkeHashTblCl::constructor_void_]
jmp 0x40a15d
xor eax, eax
push 0
push 0
push 0
push 0
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
push 0x43
mov dword [esi], eax
call dword [sym.imp.mkeutlcl.dll_public:_int___thiscall_MkeHashTblCl::Initial_int__int__int__int____cdecl___int__void____void__]
push 0x24f0
call ebx
mov esi, eax
add esp, 4
mov dword [ebp - 0x224], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x40a317
mov ecx, esi
call dword [sym.imp.mkeutlcl.dll_public:_void___thiscall_MkeWorkerThreadBaseCl::constructor_void_]
push 0x38
mov byte [ebp - 4], 2
lea eax, [esi + 0x28]
mov dword [esi + 0x24], vtable.IProgressDlgListener2.0
push 0
push eax
mov dword [esi], vtable.NSplySumDataMan.1.0
mov dword [esi + 0x24], vtable.NSplySumDataMan.0
call sub.VCRUNTIME140.dll_memset
xor eax, eax
push 0x10
mov word [esi + 0x70], ax
mov word [esi + 0x27c], ax
call ebx
add esp, 0x10
mov dword [ebp - 0x220], eax
test eax, eax
je 0x40a201
mov dword [eax], 0x100
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x40a203
xor eax, eax
push 0x10
mov dword [esi + 0x60], eax
call ebx
add esp, 4
mov dword [ebp - 0x220], eax
test eax, eax
je 0x40a234
mov dword [eax], 0x100
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x40a236
xor eax, eax
push 0x10
mov dword [esi + 0x64], eax
call ebx
add esp, 4
mov dword [ebp - 0x220], eax
test eax, eax
je 0x40a267
mov dword [eax], 0x100
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x40a269
xor eax, eax
push 0x10
mov dword [esi + 0x68], eax
call ebx
add esp, 4
mov dword [ebp - 0x220], eax
test eax, eax
je 0x40a29a
mov dword [eax], 0x100
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x40a29c
xor eax, eax
push 0x40
mov dword [esi + 0x6c], eax
lea eax, [esi + 0x2284]
push 0
push eax
mov dword [esi + 0x2280], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi + 0x24ec], 0
xor eax, eax
mov dword [esi + 0x22c4], 0
mov dword [esi + 0x22c8], 0
mov dword [esi + 0x22cc], 0
mov dword [esi + 0x22d0], 0
mov dword [esi + 0x22d4], 0
mov dword [esi + 0x22d8], 0
mov dword [esi + 0x22dc], 0
mov word [esi + 0x22e0], ax
jmp 0x40a319
xor esi, esi
mov eax, dword [ebp - 0x228]
add eax, 0x428
mov dword [ebp - 4], 0xffffffff
push eax
lea eax, [esi + 0x70]
mov dword [edi + 0xfc], esi
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, dword [0x418d70]
add esp, 0xc
mov ebx, dword [edi + 0xfc]
mov ecx, 0x418d70
call dword [eax + 0x7c]
push eax
push 0x3ea
lea ecx, [ebp - 0x4f4]
call dword [0x40e3b8]
mov eax, dword [0x418e68]
mov dword [ebp - 0x44c], 0x3ea
mov dword [ebp - 0x448], eax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x428]
mov esi, dword [sym.imp.mfc140u.dll_CWnd::CWnd]
mov dword [ebp - 0x4f4], 0x41153c
call esi
mov dword [ebp - 0x428], 0x4113c4
lea ecx, [ebp - 0x3a8]
mov byte [ebp - 4], 4
call esi
mov dword [ebp - 0x3a8], 0x4113c4
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 5
call esi
mov dword [ebp - 0x328], 0x41124c
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 6
call esi
mov ecx, ebx
mov dword [ebp - method.CButton.virtual_0], vtable.CButton.0
neg ecx
mov dword [ebp - 0x444], 0
lea eax, [ebx + 0x24]
mov dword [ebp - 0x440], 0
sbb ecx, ecx
mov dword [ebp - 0x438], 1
and ecx, eax
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
lea ecx, [ebp - 0x4f4]
mov dword [ebp - 4], 7
call dword [sym.imp.mfc140u.dll_CDialog::DoModal]
mov eax, dword [ebx + 0x22cc]
test eax, eax
jne 0x40a490
mov eax, dword [ebx + 0x64]
cmp dword [eax + 8], 0
jle 0x40a480
mov ecx, ebx
call fcn.0040b360
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x2280], 1
push dword [eax + 8]
push str._NSplySumDataMan__Inspection_process_information_file_reading_completed_Data_count__d__n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel3]
jmp 0x40a49c
push str._NSplySumDataMan___ERR__No_inspection_process_information_data_n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel0]
add esp, 4
jmp 0x40a49f
push eax
push str._NSplySumDataMan___ERR__Inspection_process_information_reading_error_Rslt:_d_n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel0]
add esp, 8
lea ecx, [ebp - 0x2a8]
call dword [sym.imp.mfc140u.dll_CButton::CButton]
lea ecx, [ebp - 0x328]
call dword [sym.imp.mfc140u.dll_CStatic::CStatic]
mov esi, dword [sym.imp.mfc140u.dll_CProgressCtrl::CProgressCtrl]
lea ecx, [ebp - 0x3a8]
call esi
lea ecx, [ebp - 0x428]
call esi
lea ecx, [ebp - 0x4f4]
call dword [sym.imp.mfc140u.dll_CDialog::CDialog]
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x40a518
push dword [edi + 0xe8]
call esi
mov ebx, dword [sym.imp.mketools.dll_MkeTlChangeLogFileName]
push str.versioninfo.log
call ebx
add esp, 4
lea eax, [ebp - 0x21c]
push eax
call esi
jmp 0x40a528
mov ebx, dword [sym.imp.mketools.dll_MkeTlChangeLogFileName]
push str.versioninfo.log
call ebx
add esp, 4
mov esi, dword [sym.imp.mketools.dll_MkeTlTraceLevel20]
push str.__________________________________________n
call esi
push dword [edi + 0xd8]
push dword [edi + 0x50]
push str._s:__s_n
call esi
push dword [edi + 0xe8]
push str.UserDataFolder:__s_n
call esi
push str.__________________________________________n
call esi
add esp, 0x1c
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40a595
push dword [edi + 0xe8]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call esi
push str.SupplySum.log
call ebx
add esp, 4
lea eax, [ebp - 0x21c]
push eax
call esi
jmp 0x40a59f
push str.SupplySum.log
call ebx
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c38d
mov esp, ebp
pop ebp
ret