Function at 0x4015f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x410008]
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 eax, ecx
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x258], eax
lea ecx, [ebp - 0x298]
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
push str.c3.tpd
movq qword [ebp - 0x224], xmm0
call fcn.00406500
push str.soul.exe
lea ecx, [ebp - 0x280]
mov dword [ebp - 4], 0
call fcn.00406500
mov dword [ebp - 4], 1
push 0x30
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call fcn.00409707
mov esi, eax
add esp, 4
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
lea eax, [esi + 0x30]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x258], eax
xorps xmm0, xmm0
mov dword [ebp - 0x240], 0
movq qword [ebp - 0x248], xmm0
lea edi, [ebp - 0x298]
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 3
push edi
mov ecx, esi
call fcn.00406630
add esi, 0x18
lea eax, [ebp - 0x268]
add edi, 0x18
mov dword [ebp - 0x244], esi
cmp edi, eax
jne 0x4016f1
push ecx
mov edx, esi
mov ecx, esi
call fcn.00408110
add esp, 4
mov dword [ebp - 0x220], esi
push 0x4064a0
push 2
push 0x18
lea eax, [ebp - 0x298]
mov byte [ebp - 4], 5
push eax
call fcn.00409737
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
movq qword [ebp - 0x230], xmm0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x254]
call fcn.00406500
lea edx, [ebp - 0x224]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x254]
call fcn.004019d0
mov byte [ebp - 4], 6
mov bl, al
mov ecx, dword [ebp - 0x240]
cmp ecx, 8
jb 0x4017f3
mov edx, dword [ebp - 0x254]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4017e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4017e9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040984c
add esp, 8
test bl, bl
je 0x40180e
mov ecx, dword [ebp - 0x25c]
lea eax, [ebp - 0x218]
push eax
call fcn.00406500
jmp 0x40198a
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40b52c
call fcn.00407500
xorps xmm0, xmm0
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x23c]
movq qword [ebp - 0x23c], xmm0
call fcn.00401e80
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x258], eax
cmp edi, eax
je 0x40195e
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [eax + eax]
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
lea edx, [ebp - 0x224]
call fcn.00401b60
mov eax, dword [ebp - 0x22c]
add esp, 4
mov esi, dword [ebp - 0x230]
mov dword [ebp - 0x264], eax
cmp esi, eax
je 0x401949
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4018ab
mov eax, dword [esi]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
jne 0x4018cc
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor edi, edi
jmp 0x4018f6
push ebx
call fcn.0040985a
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4018e1
mov eax, dword [esi]
push 0
push 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
push 0x24
push 0x40b544
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x4019c2
add esi, 0x18
cmp esi, dword [ebp - 0x264]
jne 0x4018a1
mov eax, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x230]
mov edi, dword [ebp - 0x260]
cmp esi, eax
je 0x401949
push ecx
mov edx, eax
mov ecx, esi
call fcn.00408110
mov eax, dword [ebp - 0x230]
add esp, 4
mov dword [ebp - 0x22c], eax
add edi, 0x18
mov dword [ebp - 0x260], edi
cmp edi, dword [ebp - 0x258]
jne 0x401870
push 0x10
push 0x40b558
push 0x40b560
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x25c]
push 0
call fcn.00406500
lea ecx, [ebp - 0x23c]
call fcn.004072d0
lea ecx, [ebp - 0x230]
call fcn.004072d0
lea ecx, [ebp - 0x224]
call fcn.004072d0
mov eax, dword [ebp - 0x25c]
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.004096f9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x25c]
push esi
call fcn.00406630
jmp 0x40197f