Function at 0x40f0c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d8d4
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x437610]
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
lea eax, [ebp - 0x16c]
push eax
push 0x28
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x150], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x104
lea ecx, [ebp - 0x114]
push ebx
push ecx
call fcn.0041f350
mov eax, dword [ebp - 0x16c]
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f140
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [esi + 0xa80e8]
call fcn.00401360
push 1
mov eax, 0x4310e8
lea ecx, [esi + 0xa80e8]
call fcn.004039a0
mov edi, 0xf
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
mov dword [ebp - 4], ebx
test byte [0x4e33fc], 1
lea esi, [edi - 0xe]
jne 0x40f1b9
or dword [0x4e33fc], esi
push 0x42da80
mov dword [0x4e3414], edi
mov dword [0x4e3410], ebx
mov byte [0x4e3400], bl
call fcn.0041679c
add esp, 4
lea ecx, [ebp - 0x130]
call fcn.004113f0
test al, al
jne 0x40f274
test byte [0x4e33fc], 1
jne 0x40f1fa
or dword [0x4e33fc], esi
push 0x42da80
mov dword [0x4e3414], edi
mov dword [0x4e3410], ebx
mov byte [0x4e3400], bl
call fcn.0041679c
add esp, 4
push 0x4e3400
lea ecx, [ebp - 0x130]
call fcn.00410a40
cmp dword [ebp - 0x120], ebx
jne 0x40f22f
push 0x40000
push 0x432688
push str.error_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xa
call fcn.004181a0
test byte [0x4e343c], 1
jne 0x40f25d
or dword [0x4e343c], esi
push 0x42dab0
mov dword [0x4e3434], edi
mov dword [0x4e3430], ebx
mov byte [0x4e3420], bl
call fcn.0041679c
add esp, 4
push str._read_regedit_fail_n
mov eax, 0x4e341c
call fcn.004109f0
add esp, 4
jmp 0x40f32a
test byte [0x4e343c], 1
jne 0x40f2a2
or dword [0x4e343c], esi
push 0x42dab0
mov dword [0x4e3434], edi
mov dword [0x4e3430], ebx
mov byte [0x4e3420], bl
call fcn.0041679c
add esp, 4
push ebx
lea edx, [ebp - 0x130]
push edx
or eax, 0xffffffff
mov esi, 0x4e3420
call fcn.00403c10
push 0xd
mov eax, str.locojoymt2_
mov ecx, esi
call fcn.004039a0
push 0x10
mov eax, str.MtExtractLog.txt
mov ecx, esi
call fcn.004039a0
cmp dword [ebp - 0x11c], 0x10
mov esi, dword [ebp - 0x130]
jae 0x40f2e8
lea esi, [ebp - 0x130]
test byte [0x4e343c], 1
jne 0x40f317
or dword [0x4e343c], 1
push 0x42dab0
mov dword [0x4e3434], edi
mov dword [0x4e3430], ebx
mov byte [0x4e3420], bl
call fcn.0041679c
add esp, 4
push esi
push str._read_regedit_success__s__n
mov eax, 0x4e341c
call fcn.004109f0
add esp, 8
mov edi, dword [ebp - 0x150]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x130]
lea esi, [edi + 0xa8120]
push eax
mov ecx, esi
call fcn.00401260
push str.locojoymt2mt2_args.ini
lea ecx, [ebp - 0x14c]
push esi
push ecx
call fcn.004044e0
add esp, 0xc
lea esi, [edi + 0xa8104]
mov byte [ebp - 4], 1
mov edi, eax
mov dword [ebp - 0x154], esi
call fcn.004011f0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x138], 0x10
jb 0x40f38e
mov edx, dword [ebp - 0x14c]
push edx
call fcn.00416084
add esp, 4
mov eax, dword [ebp - 0x150]
add eax, 0xa8120
push str.locojoymt2Mt2.exe
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.004044e0
add esp, 0xc
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x150]
add esi, 0xa81ac
mov edi, eax
call fcn.004011f0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x138], 0x10
jb 0x40f3e0
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00416084
add esp, 4
mov eax, dword [ebp - 0x150]
push str.locojoymt2launcher_web.exe
add eax, 0xa8120
push eax
lea edx, [ebp - 0x14c]
push edx
call fcn.004044e0
add esp, 0xc
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x150]
add esi, 0xa813c
mov edi, eax
call fcn.004011f0
mov edi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp - 0x138], edi
jb 0x40f436
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00416084
add esp, 4
push 0x3c
mov dword [ebp - 0x160], ebx
call fcn.004161c1
add esp, 4
cmp eax, ebx
je 0x40f522
mov dword [ebp - 0x164], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x164]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x164]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x164]
mov byte [ecx + 0x38], 1
mov edx, dword [ebp - 0x164]
mov byte [edx + 0x39], 1
mov word [ebp - 0x158], bx
mov byte [ebp - 0x156], bl
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x154]
cmp dword [esi + 0x14], edi
jb 0x40f49c
mov edx, dword [esi]
jmp 0x40f49e
mov edx, esi
lea ecx, [ebp - 0x168]
call fcn.0040bab0
cmp dword [esi + 0x14], edi
jb 0x40f4b2
mov ecx, dword [esi]
jmp 0x40f4b4
mov ecx, esi
lea eax, [ebp - 0x168]
push eax
call fcn.0040c160
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x154]
lea esi, [ebp - 0x168]
call fcn.00410600
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.00416084
add esp, 4
cmp dword [ebp - 0x11c], 0x10
jb 0x40f506
mov edx, dword [ebp - 0x130]
push edx
call fcn.00416084
add esp, 4
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.00415ac1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x150], ebx
call fcn.00415b58
push 0x434670
lea ecx, [ebp - 0x178]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00418bd7
int3