Function at 0x55cfc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5add7e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x614040]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ecx, 0x61fed8
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x280], 0
mov dword [0x61ff24], 0
call fcn.00404190
mov ecx, dword [0x61fee0]
mov eax, 0x92492493
sub ecx, dword [0x61fed8]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x80
jae 0x55d063
push 0x80
mov ecx, 0x61fed8
call fcn.00404700
mov ecx, 0x61fef0
call fcn.004054d0
mov eax, dword [0x61fef8]
sub eax, dword [0x61fef0]
sar eax, 2
cmp eax, 0x80
jae 0x55d091
push 0x80
mov ecx, 0x61fef0
call fcn.00404b40
mov eax, dword [ebp + 0xc]
cmp eax, 0x1faf
jne 0x55d0a0
mov eax, 0xcea
xor ecx, ecx
cmp edi, 0x9fbf1
jne 0x55d0af
mov ecx, 1
mov edx, dword [0x61fa38]
test edx, edx
je 0x55d0c8
push eax
push 0x10007
push dword [ecx*4 + 0x61feb8]
call edx
xor eax, eax
cmp edi, 0x9fbf1
jne 0x55d0d7
mov eax, 1
mov ecx, dword [0x61fa68]
test ecx, ecx
jne 0x55d0e5
xor eax, eax
jmp 0x55d0f3
push 0x50020
push dword [eax*4 + 0x61feb8]
call ecx
cmp eax, 0xff1
setne bl
xor ecx, ecx
mov byte [ebp - 0x2a4], bl
cmp edi, 0x9fbf1
jne 0x55d110
mov ecx, 1
mov eax, dword [0x61fa6c]
test eax, eax
je 0x55d7cd
push dword [0x61ff28]
push dword [ecx*4 + 0x61feb8]
call eax
test al, al
je 0x55d7cd
mov ecx, dword [0x61ff28]
mov eax, dword [ecx]
call dword [eax + 0x78]
mov ecx, dword [0x61ff28]
movzx eax, ax
mov dword [ebp - 0x288], eax
mov eax, dword [ecx]
call dword [eax + 0x14]
push eax
lea ecx, [ebp - 0x284]
call fcn.00402f60
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x284]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00403660
add esp, 4
lea ecx, [ebp - 0x2a0]
add eax, 0x10
mov dl, bl
mov dword [esi], eax
call fcn.0058a220
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
cmp edi, 0x9fbf1
jne 0x55d1a0
mov eax, 1
mov ecx, dword [0x61fa68]
test ecx, ecx
jne 0x55d1ae
xor eax, eax
jmp 0x55d1bc
push 0x6020000
push dword [eax*4 + 0x61feb8]
call ecx
push eax
mov edx, edi
lea ecx, [ebp - 0x27c]
call fcn.0058d5b0
add esp, 4
lea edx, [ebp - 0x27c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x294]
call fcn.0058b300
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 4
call fcn.004032d0
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov edx, dword [ebp - 0x294]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x55d218
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xa0009
mov edx, edi
lea ecx, [ebp - 0x278]
call fcn.0058d5b0
add esp, 4
mov byte [ebp - 4], 5
push dword [ebp - 0x278]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
call esi
test eax, eax
je 0x55d265
mov ecx, dword [ebp - 0x278]
call fcn.0058c1f0
test al, al
je 0x55d265
mov eax, dword [ebp - 0x278]
cmp dword [eax - 0xc], 0xae
jle 0x55d43e
call fcn.00414eab
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x55d281
push 0x80004005
call fcn.00402740
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28c], esi
mov byte [ebp - 4], 6
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x55d2bd
push 0x104
lea ecx, [ebp - 0x28c]
call fcn.00402c20
mov esi, dword [ebp - 0x28c]
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 0x55d7c3
cmp eax, dword [esi - 8]
jg 0x55d7c3
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edx, 1
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x55d320
push 0x104
lea ecx, [ebp - 0x278]
call fcn.00402c20
mov eax, dword [ebp - 0x278]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov eax, dword [ebp - 0x278]
push dword [eax - 8]
push eax
call fcn.00528e42
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x55d7c3
mov eax, dword [ebp - 0x278]
cmp ecx, dword [eax - 8]
jg 0x55d7c3
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x278]
mov word [eax + ecx*2], dx
mov edx, 1
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x55d398
push 0x104
lea ecx, [ebp - 0x278]
call fcn.00402c20
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [ebp - 0x278]
push dword [eax - 8]
push eax
call fcn.00528e42
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x55d7c3
mov eax, dword [ebp - 0x278]
cmp ecx, dword [eax - 8]
jg 0x55d7c3
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x290], edx
mov word [eax + ecx*2], dx
cmp edi, 0x9fbf1
jne 0x55d3f1
mov dword [ebp - 0x290], 1
mov edx, dword [0x61fa1c]
test edx, edx
je 0x55d41b
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
mov eax, dword [ebp - 0x290]
push 0xa0009
push dword [eax*4 + 0x61feb8]
call edx
add esi, 0xfffffff0
mov byte [ebp - 4], 5
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55d438
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [ebp + 0xc], 0xcf5
jne 0x55d4a4
mov ecx, dword [0x61fea4]
mov eax, 0x2aaaaaab
sub ecx, dword [0x61fea0]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x55d472
mov ecx, edi
call fcn.00569e80
call fcn.00569990
cmp dword [0x615470], 0
jge 0x55d6b3
push 0x6098b4
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x280], 0x98400
push eax
mov dword [ebp - 0x2c4], 0x98400
call fcn.0052d791
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ecx - 0xc]
add ecx, 0xd
add ecx, dword [eax - 0xc]
cmp ecx, 0x104
jle 0x55d4e6
push 0x6098b4
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x280], 0x97902
push eax
mov dword [ebp - 0x2b4], 0x97902
call fcn.0052d791
push eax
call esi
test eax, eax
jne 0x55d512
push 0x6098b4
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x280], 0x97201
push eax
mov dword [ebp - 0x2c0], 0x97201
call fcn.0052d791
mov ecx, dword [ebp - 0x27c]
call fcn.0058c1f0
test al, al
jne 0x55d546
push 0x6098b4
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x280], 0x9f402
push eax
mov dword [ebp - 0x2bc], 0x9f402
call fcn.0052d791
xor eax, eax
mov ecx, 0xff1
cmp word [ebp - 0x288], cx
setne al
sub esp, 8
dec eax
and eax, 0xfffff400
add eax, 0x1000
mov dword [ebp - 0x288], eax
fild dword [ebp - 0x288]
fstp qword [ebp - 0x2cc]
fld qword [ebp - 0x2cc]
mov ecx, dword [ebp - 0x278]
fstp qword [esp]
call fcn.0058d510
add esp, 8
test al, al
jne 0x55d5c4
mov ecx, dword [ebp - 0x298]
mov edx, 0x9e900
call fcn.00547e20
cmp eax, 2
jne 0x55d5c4
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x2a8], eax
lea eax, [ebp - 0x2a8]
push 0x6098b4
push eax
call fcn.0052d791
push dword [ebp - 0x2a4]
lea edx, [ebp - 0x27c]
lea ecx, [ebp - 0x288]
call fcn.0058ab50
add esp, 4
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 7
call fcn.004032d0
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 5
call fcn.00402b60
push ecx
lea eax, [ebp - 0x284]
mov ecx, esp
push eax
call fcn.00402f30
call fcn.0055fdd0
push ecx
lea eax, [ebp - 0x284]
mov ecx, esp
push eax
call fcn.00402f30
mov dl, byte [ebp - 0x2a4]
lea ecx, [ebp - 0x290]
call fcn.0058a220
add esp, 4
push eax
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 8
call fcn.004032d0
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 5
call fcn.00402b60
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x278]
call fcn.0058ac80
lea edx, [ebp - 0x284]
mov esi, eax
lea ecx, [ebp - 0x27c]
call fcn.0058ac80
cmp esi, eax
jg 0x55d67d
mov esi, eax
cmp esi, 0x2710
jl 0x55d6b3
cmp dword [ebp + 0xc], 0x1faf
je 0x55d6b3
push 0x6098b4
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x280], 0x97301
push eax
mov dword [ebp - 0x2ac], 0x97301
call fcn.0052d791
push dword [ebp - 0x298]
lea ecx, [ebp - 0x274]
push edi
call fcn.005993d0
xor eax, eax
mov byte [ebp - 4], 9
cmp edi, 0x9fbf1
jne 0x55d6d8
mov eax, 1
mov ecx, dword [0x61fa68]
test ecx, ecx
je 0x55d6f2
push 0x10015
push dword [eax*4 + 0x61feb8]
call ecx
mov ecx, eax
mov eax, dword [ebp - 0xa0]
push ecx
mov dword [eax + 0x38], ecx
lea ecx, [ebp - 0x274]
call fcn.00598fe0
lea ecx, [ebp - 0x274]
mov dword [ebp - 0xc0], 0x23ae
mov dword [ebp - 0x24], 0x55cfa0
call fcn.005990f0
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 5
call fcn.00599240
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebp - 0x278]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55d755
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x27c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55d778
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x2a0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55d79b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x284]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x55d7bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
jmp 0x55d858
push 0x80070057
call fcn.00402740
push 0x6098b4
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], 0x411
push eax
call fcn.0052d791
cmp dword [0x61ff14], 0
jne 0x55d838
push 0x61ff14
call dword [0x61f96c]
cmp dword [0x61ff14], 0
jne 0x55d838
push 0x61ff14
push dword [ebp - 0x29c]
call fcn.00566ad0
cmp dword [0x61ff14], 0
jne 0x55d838
mov ecx, dword [ebp - 0x280]
mov eax, ecx
and eax, 0xff0000
cmp eax, 0x90000
jne 0x55d838
mov dword [0x61ff14], ecx
sub esp, 8
push dword [ebp - 0x2b8]
call fcn.0055e560
mov eax, 0x55d84c
ret
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00557250
test al, al
je 0x55d8a8
mov ecx, 0x61fed8
call fcn.00404190
mov ecx, dword [0x61fee0]
mov eax, 0x92492493
sub ecx, dword [0x61fed8]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x80
jae 0x55d8a8
push 0x80
mov ecx, 0x61fed8
call fcn.00404700
mov ecx, dword [0x61ff44]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x61ff48]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [0x61ff14], 0
mov byte [0x61ff42], 0
je 0x55d8d3
mov ebx, 2
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00527e2c
mov esp, ebp
pop ebp
ret 0xc