Function at 0x411f5a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x422885
call fcn.0041410c
sub esp, 0x138
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 0x411fee
lea eax, [ebp - 0x144]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x411fc6
lea eax, [ebp - 0x144]
push eax
call fcn.00402826
pop ecx
push eax
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x24]
call fcn.004023b0
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push 1
push eax
call fcn.00411434
pop ecx
pop ecx
test al, al
jne 0x411fff
push dword [ebp + 0x10]
call fcn.00402826
pop ecx
push eax
push dword [ebp + 0x10]
jmp 0x411ff7
push esi
call fcn.00402826
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.004023b0
mov eax, dword [0x42e1cc]
shl eax, 0x17
or eax, 0x11b9
mov dword [0x42e1cc], eax
jne 0x41201a
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x42e1c8]
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
mov edx, 0x80000000
and eax, edx
shr ecx, 1
add eax, edx
or ecx, eax
mov dword [0x42e1c8], ecx
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x412077
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
cmp byte [eax + ecx - 1], 0x5c
je 0x412077
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
cmp byte [eax + ecx - 1], 0x2f
je 0x412077
push 0x5c
push 1
lea ecx, [ebp - 0x24]
call fcn.00405100
cmp dword [ebp - 0x10], 0x10
lea edi, [ebp - 0x24]
cmovae edi, dword [ebp - 0x24]
call fcn.004153ca
mov esi, eax
shl esi, 0x10
call fcn.004153ca
or eax, esi
push eax
push edi
lea eax, [ebp - 0x40]
push str._spl_08x.ftf
push eax
call fcn.00407cf8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.004128fe
mov eax, dword [0x42e1c8]
mov edx, dword [0x42e1cc]
mov ecx, eax
xor edi, edi
shl edx, 0x1a
not ecx
inc edi
and ecx, 0x177
or edx, edi
add esp, 0x14
neg ecx
sbb ecx, ecx
add eax, eax
neg ecx
or eax, ecx
mov dword [0x42e1c8], eax
mov eax, 0x38a
cmp edx, eax
cmove edx, eax
mov dword [0x42e1cc], edx
test edx, edx
jne 0x41210b
push 0x2d
mov eax, 0x425428
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x430e24]
test ecx, ecx
je 0x41215c
lea eax, [ecx + 0x470]
push eax
push edi
call fcn.0040e6e9
cmp dword [eax], 0
je 0x41215c
mov ecx, dword [0x430e24]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ecx + 0x470]
push eax
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
push edi
call fcn.0040e6e9
xor ecx, ecx
push ecx
push 0x80
push edi
push ecx
push ecx
push 0xc0000000
push esi
call dword [eax]
mov esi, eax
jmp 0x41215e
xor esi, esi
cmp dword [0x42e1cc], 0
jne 0x41216f
push 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x42e1c8]
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
mov edx, 0x80000000
and eax, edx
add eax, edx
shr ecx, 1
or ecx, eax
mov dword [0x42e1c8], ecx
cmp esi, 0xffffffff
jne 0x4121da
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004016a6
inc ebx
cmp ebx, 0x200
jl 0x412077
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.004016a6
mov eax, esi
jmp 0x41220f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.0040b04b
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004016a6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004016a6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret