Function at 0x410899
Capabilities:
Get common file path

Disassembly:
mov eax, 0x420bca
call fcn.00412bcc
sub esp, 0x54c
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push edi
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x410951
call fcn.00411263
cmp eax, 3
jae 0x4108e9
push str.Global881
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea eax, [ebp - 0x144]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x410929
cmp byte [ebp - 0x144], 0
jne 0x41090c
mov eax, ebx
jmp 0x410919
lea eax, [ebp - 0x144]
push eax
call fcn.00412340
pop ecx
push eax
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x24]
call fcn.00404022
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push 1
push eax
call fcn.0040fefc
pop ecx
pop ecx
test al, al
jne 0x410962
push dword [ebp + 0x10]
call fcn.00404477
pop ecx
push eax
push dword [ebp + 0x10]
jmp 0x41095a
push esi
call fcn.00404477
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00404022
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x410999
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
cmp byte [eax + ecx - 1], 0x5c
je 0x410999
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
cmp byte [eax + ecx - 1], 0x2f
je 0x410999
push 0x5c
push 1
lea ecx, [ebp - 0x24]
call fcn.0040515b
cmp dword [ebp - 0x10], 0x10
lea edi, [ebp - 0x24]
cmovae edi, dword [ebp - 0x24]
call fcn.00414f52
mov esi, eax
shl esi, 0x10
call fcn.00414f52
or eax, esi
push eax
push edi
lea eax, [ebp - 0x40]
push str._spl_08x.ftf
push eax
call fcn.0040743b
add esp, 0x10
mov byte [ebp - 4], 2
call fcn.00411263
cmp eax, 3
jae 0x4109e8
lea eax, [ebp - 0x558]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00410ef7
pop ecx
mov ecx, dword [0x42e66c]
lea eax, [ecx + 0x54]
push eax
push 1
call fcn.00404c3d
cmp dword [eax], 0
je 0x410a42
mov ecx, dword [0x42e66c]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ecx + 0x54]
push eax
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
push 1
call fcn.00404c3d
xor ecx, ecx
push ecx
push 0x80
push 1
push ecx
push ecx
push 0xc0000000
push esi
call dword [eax]
jmp 0x410a44
xor eax, eax
cmp eax, 0xffffffff
jne 0x410a89
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004015ab
inc ebx
cmp ebx, 0x200
jl 0x410999
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], al
lea ecx, [ebp - 0x24]
call fcn.004015ab
mov eax, esi
jmp 0x410abe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.0040a17b
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004015ab
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004015ab
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret