Function at 0x4015a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x402e2a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x404538
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
push 0x404538
lea ecx, [esp + 0x28]
mov dword [esp + 0x15c], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], 1
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
mov byte [esp + 0x158], 3
push eax
push 0x404118
push 7
push ebx
push 0x403278
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x401638
push ebx
push 0x1f9
mov ecx, 0x404540
call fcn.00401090
jmp 0x4019e0
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
mov byte [esp + 0x158], 4
cmp eax, ebx
je 0x4019f2
mov esi, dword [ebp + 0xd8]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x158], 5
je 0x40167c
push esi
mov ecx, eax
call fcn.00401ae0
mov esi, eax
jmp 0x40167e
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x158], 4
mov dword [esp + 0x20], esi
jne 0x401698
push 0x8007000e
call fcn.00402adf
cmp esi, ebx
mov byte [esp + 0x158], 6
je 0x4016a8
mov ecx, dword [esi]
jmp 0x4016aa
xor ecx, ecx
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x1c]
push edi
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
cmp esi, ebx
mov edi, eax
mov byte [esp + 0x158], 4
je 0x4016d2
mov ecx, esi
call fcn.00401b20
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::operator_1
cmp edi, ebx
jl 0x4019c5
mov ecx, dword [esp + 0x18]
push 0x404538
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4019c5
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x4c]
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add ebp, 0xe4
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push 0x404110
push edx
call sub.MFC42.DLL_operator
push eax
mov ecx, ebp
mov byte [esp + 0x15c], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 4
call fcn.00402650
mov eax, dword [esp + 0x2c]
push 0xc
add eax, 0xd8
mov edi, dword [eax]
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
cmp esi, ebx
mov byte [esp + 0x158], 8
je 0x4017bb
push edi
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.00402a0e
cmp eax, ebx
mov dword [esi], eax
jne 0x4017bd
cmp edi, ebx
je 0x4017bd
push 0x8007000e
call fcn.00402adf
jmp 0x4017bd
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x158], 4
mov dword [esp + 0x20], esi
jne 0x4017d7
push 0x8007000e
call fcn.00402adf
cmp esi, ebx
mov byte [esp + 0x158], 9
je 0x4017e7
mov ecx, dword [esi]
jmp 0x4017e9
xor ecx, ecx
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x2a]
push edi
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0xa4]
cmp esi, ebx
mov edi, eax
mov byte [esp + 0x158], 4
je 0x401821
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x401821
push 1
mov ecx, esi
call fcn.00401b70
cmp edi, ebx
jge 0x40185f
push ebx
push 0x205
mov ecx, 0x404540
call fcn.00401090
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x158], 2
cmp eax, ebx
je 0x401a23
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x401a23
cmp word [esp + 0x2a], 2
je 0x401871
push ebp
lea ecx, [esp + 0x18]
call fcn.004027a0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x160], 0xa
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, ebx
jne 0x4018e0
push ebx
push 0x202
mov ecx, 0x404540
call fcn.00401090
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 4
call fcn.0040278e
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x158], 2
cmp eax, ebx
je 0x401a23
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x401a23
cmp word [esp + 0x2a], 1
jne 0x401924
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
add eax, 0xd8
push eax
push 0x40410c
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 0xa
call fcn.00402650
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.00401bb0
cmp eax, ebx
jne 0x40194d
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00402788
mov ecx, esi
call fcn.00401e80
jmp 0x401954
mov ecx, esi
call fcn.00402080
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 4
call fcn.0040278e
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x158], 2
cmp eax, ebx
je 0x401986
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], 1
call fcn.00402650
lea ecx, [esp + 0x24]
mov byte [esp + 0x158], bl
call fcn.00402650
lea ecx, [esp + 0x18]
mov dword [esp + 0x158], 0xffffffff
call fcn.00402650
mov eax, 1
jmp 0x401a5a
push ebx
push 0x205
mov ecx, 0x404540
call fcn.00401090
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x158], 2
cmp eax, ebx
je 0x401a23
jmp 0x401a1d
push ebx
push 0x205
mov ecx, 0x404540
call fcn.00401090
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x158], 2
cmp eax, ebx
je 0x401a23
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], 1
call fcn.00402650
lea ecx, [esp + 0x24]
mov byte [esp + 0x158], bl
call fcn.00402650
lea ecx, [esp + 0x18]
mov dword [esp + 0x158], 0xffffffff
call fcn.00402650
xor eax, eax
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14c
ret