Function at 0x410d5d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x420d76
call fcn.00412d4c
sub esp, 0x588
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
push edi
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
mov dword [ebp - 4], 1
call fcn.004113ad
mov edi, 0x104
cmp eax, 3
jae 0x410dac
lea eax, [ebp - 0x594]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x410dbe
push esi
call fcn.00404573
pop ecx
push eax
push esi
jmp 0x410df2
lea eax, [ebp - 0x180]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x410dfa
cmp byte [ebp - 0x180], 0
jne 0x410ddd
mov eax, ebx
jmp 0x410dea
lea eax, [ebp - 0x180]
push eax
call fcn.004124c0
pop ecx
push eax
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x40]
call fcn.004040e9
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.00401391
mov byte [ebp - 4], 2
push 0x10
pop edi
push dword [0x42d1e0]
cmp dword [0x42d1e4], edi
mov eax, 0x42d1d0
cmovae eax, dword [0x42d1d0]
push ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c705
cmp eax, 0xffffffff
je 0x410ed6
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
cmp edx, edi
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp byte [eax], 0x2f
je 0x410ec1
cmp edx, edi
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp byte [eax], 0x5c
je 0x410ec1
cmp edx, edi
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp byte [eax], 0
je 0x410e72
cmp edx, edi
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp byte [eax + 1], 0x3a
je 0x410ec1
cmp dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp edx, edi
lea eax, [ebp - 0x28]
push ecx
cmovae eax, esi
push eax
push dword [ebp + 8]
call fcn.00410252
add esp, 0xc
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004015cc
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.004015cc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
cmp edx, edi
lea eax, [ebp - 0x28]
cmovae eax, esi
push eax
push dword [ebp + 8]
call fcn.004100d5
pop ecx
pop ecx
jmp 0x410e91
push dword [ebp + 0x14]
lea ecx, [ebp - 0x4c]
call fcn.0040dcf2
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
push eax
push 1
push dword [ebp - 0x4c]
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040e73e
mov esi, dword [ebp - 0x4c]
jmp 0x410f4f
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], edi
jb 0x410f12
mov ecx, dword [esi]
jmp 0x410f14
mov ecx, esi
push eax
push ecx
lea eax, [ebp - 0x64]
push str._s__s
push eax
call fcn.004075ca
mov byte [ebp - 4], 4
cmp dword [ebp - 0x50], edi
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push ebx
push eax
call fcn.0040ff2c
add esp, 0x18
test al, al
jne 0x410f9f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.004015cc
add esi, 0x18
cmp esi, dword [ebp - 0x48]
jne 0x410eff
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push str.file__s_not_found_in_search_path
push eax
call fcn.004075ca
add esp, 0xc
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], edi
jb 0x410f73
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x58]
call fcn.00412b94
mov byte [ebp - 4], 6
mov dword [ebp - 0x58], vtable.std::runtime_error.0
mov byte [ebp - 4], 5
push 0x42bff4
lea eax, [ebp - 0x58]
push eax
call fcn.00412cee
cmp dword [ebp - 0x50], edi
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
push dword [ebp + 8]
call fcn.004100d5
pop ecx
pop ecx
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.004015cc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.0040b02f
jmp 0x410e98