Function at 0x561a30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae103
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x614040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0xa0009
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.0058d5b0
add esp, 4
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x1c]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
or edi, 0xffffffff
test eax, eax
jne 0x561c50
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x561aa7
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x561adc
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00402c20
mov edi, dword [ebp - 0x18]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [edi - 8]
push edi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x561c98
cmp eax, dword [edi - 8]
jg 0x561c98
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x561b2a
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x561b5f
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00402c20
mov esi, dword [ebp - 0x10]
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push dword [esi - 8]
push esi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x561c98
cmp eax, dword [esi - 8]
jg 0x561c98
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x561bb6
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00402c20
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push dword [esi - 8]
push esi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x561c98
cmp eax, dword [esi - 8]
jg 0x561c98
xor ecx, ecx
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], cx
cmp dword [ebp - 0x14], 0x9fbf1
jne 0x561bf1
lea edx, [ecx + 1]
mov ecx, dword [0x61fa1c]
test ecx, ecx
je 0x561c0f
mov eax, dword [esi - 0xc]
inc eax
push eax
push esi
push 0xa0009
push dword [edx*4 + 0x61feb8]
call ecx
add esi, 0xfffffff0
mov byte [ebp - 4], 1
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x561c2d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x561c4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
xor eax, eax
cmp esi, 0x9fbf1
jne 0x561c5f
mov eax, 1
mov ecx, dword [0x61fa68]
test ecx, ecx
je 0x561cd9
push 0x50000
push dword [eax*4 + 0x61feb8]
call ecx
test eax, eax
jns 0x561cd9
xor eax, eax
cmp esi, 0x9fbf1
jne 0x561c8a
mov eax, 1
mov ecx, dword [0x61fa68]
test ecx, ecx
jne 0x561ca2
xor edx, edx
jmp 0x561cb2
push 0x80070057
call fcn.00402740
push 0x10001
push dword [eax*4 + 0x61feb8]
call ecx
mov edx, eax
xor ecx, ecx
cmp esi, 0x9fbf1
jne 0x561cc1
mov ecx, 1
mov eax, dword [0x61fa38]
test eax, eax
je 0x561cd9
push edx
push 0x50000
push dword [ecx*4 + 0x61feb8]
call eax
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x561cf7
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret