Function at 0x55e9d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0032
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x616040]
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 [0x621f18], 0
call dword [0x621950]
test al, al
jne 0x55ea2b
push 0x60bae4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x158
push eax
call fcn.0052d791
cmp dword [ebp + 0x10], 0
je 0x55eda0
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
push 0xa0009
call fcn.0058f590
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x55ea7e
mov ecx, dword [ebp - 0x14]
call fcn.0058e210
test al, al
je 0x55ea7e
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0xae
jg 0x55ea7e
mov ebx, 1
or edi, 0xffffffff
jmp 0x55ec31
call fcn.00414e1f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x55ea9a
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], 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 0x55ead1
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.00402c20
mov esi, dword [ebp - 0x1c]
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 0x55edd2
cmp eax, dword [esi - 8]
jg 0x55edd2
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x55eb28
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402c20
mov eax, dword [ebp - 0x14]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.00528e42
mov edx, eax
add esp, 8
test edx, edx
js 0x55edd2
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x55edd2
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x55eb8b
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402c20
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.00528e42
mov edx, eax
add esp, 8
test edx, edx
js 0x55edd2
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x55edd2
mov dword [ecx - 0xc], edx
xor edi, edi
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp dword [ebp + 0x14], 0x9fbf1
mov word [eax + edx*2], cx
jne 0x55ebd0
mov edi, ebx
mov edx, dword [0x621a1c]
test edx, edx
je 0x55ebf1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0xa0009
push dword [edi*4 + 0x621ebc]
call edx
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
call fcn.00403660
add esp, 4
add eax, 0x10
mov cl, bl
mov dword [edi], eax
call fcn.00567780
add esi, 0xfffffff0
mov byte [ebp - 4], bl
or edi, 0xffffffff
add esp, 4
mov eax, edi
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x55ec31
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00414e1f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x55ec4d
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], 3
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, 0x104
or eax, ebx
jge 0x55ec7d
push 0x104
lea ecx, [ebp + 0x10]
call fcn.00402c20
mov esi, dword [ebp + 0x10]
push 0x104
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push dword [esi - 8]
push esi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x55edd2
cmp eax, dword [esi - 8]
jg 0x55edd2
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov dword [ebp - 0x18], ecx
mov eax, dword [esi - 0xc]
inc eax
push eax
push esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.SUCMLIB.dll_Ordinal_65]
push dword [ebp - 0x18]
call dword [0x621994]
test al, al
lea eax, [ebp - 0x18]
push eax
jne 0x55ecf1
call dword [sym.imp.SUCMLIB.dll_Ordinal_67]
push 0x60bae4
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 [0x621970], 0
je 0x55ed65
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push 0x20002
call fcn.0058f590
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 [0x621970]
test al, al
lea eax, [ebp + 0x14]
push eax
jne 0x55ed5b
call ebx
push 0x60bae4
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 0x55ed82
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x55eda0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 8], 0
je 0x55edad
mov byte [0x621f2d], 1
cmp dword [0x621f14], 0
mov byte [0x621f2c], 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 [0x621f14], 0
jne 0x55edf0
push 0x621f14
call dword [0x62196c]
mov eax, 0x55edad
ret