Function at 0x55e5c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ade72
mov eax, dword fs:[0]
push eax
sub esp, 0x20
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 dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [0x61ff18], 0
call dword [0x61f950]
test al, al
jne 0x55e61b
push 0x6098b4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x158
push eax
call fcn.0052d791
cmp dword [ebp + 0x10], 0
je 0x55e96f
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0x10]
push 0xa0009
call fcn.0058d5b0
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x55e66e
mov ecx, dword [ebp + 0x10]
call fcn.0058c1f0
test al, al
je 0x55e66e
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0xae
jg 0x55e66e
mov ebx, 1
or edi, 0xffffffff
jmp 0x55e800
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x55e68a
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
mov ebx, 1
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x55e6c1
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00402c20
mov esi, dword [ebp - 0x18]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [esi - 8]
push esi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x55e9a1
cmp eax, dword [esi - 8]
jg 0x55e9a1
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edx, ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x55e718
push 0x104
lea ecx, [ebp + 0x10]
call fcn.00402c20
mov eax, dword [ebp + 0x10]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov eax, dword [ebp + 0x10]
push dword [eax - 8]
push eax
call fcn.00528e42
mov edx, eax
add esp, 8
test edx, edx
js 0x55e9a1
mov ecx, dword [ebp + 0x10]
cmp edx, dword [ecx - 8]
jg 0x55e9a1
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov word [eax + edx*2], cx
mov edx, ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x55e77b
push 0x104
lea ecx, [ebp + 0x10]
call fcn.00402c20
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [ebp + 0x10]
push dword [eax - 8]
push eax
call fcn.00528e42
mov edx, eax
add esp, 8
test edx, edx
js 0x55e9a1
mov ecx, dword [ebp + 0x10]
cmp edx, dword [ecx - 8]
jg 0x55e9a1
mov dword [ecx - 0xc], edx
xor edi, edi
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp dword [ebp + 0x14], 0x9fbf1
mov word [eax + edx*2], cx
jne 0x55e7c0
mov edi, ebx
mov edx, dword [0x61fa1c]
test edx, edx
je 0x55e7e1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0xa0009
push dword [edi*4 + 0x61feb8]
call edx
add esi, 0xfffffff0
mov byte [ebp - 4], bl
or edi, 0xffffffff
mov eax, edi
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x55e800
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x55e81c
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, 0x104
or eax, ebx
jge 0x55e84c
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00402c20
mov esi, dword [ebp - 0x18]
push 0x104
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push dword [esi - 8]
push esi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x55e9a1
cmp eax, dword [esi - 8]
jg 0x55e9a1
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov dword [ebp - 0x14], ecx
mov eax, dword [esi - 0xc]
inc eax
push eax
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SUCMLIB.dll_Ordinal_65]
push dword [ebp - 0x14]
call dword [0x61f994]
test al, al
lea eax, [ebp - 0x14]
push eax
jne 0x55e8c0
call dword [sym.imp.SUCMLIB.dll_Ordinal_67]
push 0x6098b4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x17c
push eax
call fcn.0052d791
mov ebx, dword [sym.imp.SUCMLIB.dll_Ordinal_67]
call ebx
cmp dword [0x61f970], 0
je 0x55e934
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push 0x20002
call fcn.0058d5b0
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x14], 0
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.SUCMLIB.dll_Ordinal_65]
push dword [ebp + 0x14]
call dword [0x61f970]
test al, al
lea eax, [ebp + 0x14]
push eax
jne 0x55e92a
call ebx
push 0x6098b4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x18b
push eax
call fcn.0052d791
call ebx
lea ecx, [ebp - 0x1c]
call fcn.00402b60
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55e951
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x55e96f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 8], 0
je 0x55e97c
mov byte [0x61ff2d], 1
cmp dword [0x61ff14], 0
mov byte [0x61ff2c], 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00402740
cmp dword [0x61ff14], 0
jne 0x55e9bf
push 0x61ff14
call dword [0x61f96c]
mov eax, 0x55e97c
ret