Function at 0x55d360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b030e
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x616040]
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, 0x621ed8
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 0x280], 0
mov dword [0x621f24], 0
call fcn.00404190
mov ecx, dword [0x621ee0]
mov eax, 0x92492493
sub ecx, dword [0x621ed8]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x80
jae 0x55d403
push 0x80
mov ecx, 0x621ed8
call fcn.00404750
mov ecx, 0x621ef0
call fcn.00404360
mov eax, dword [0x621ef8]
sub eax, dword [0x621ef0]
sar eax, 2
cmp eax, 0x80
jae 0x55d431
push 0x80
mov ecx, 0x621ef0
call fcn.00404b90
mov eax, dword [ebp + 0xc]
cmp eax, 0x1faf
jne 0x55d440
mov eax, 0xcea
xor ecx, ecx
cmp edi, 0x9fbf1
jne 0x55d44f
mov ecx, 1
mov edx, dword [0x621a3c]
test edx, edx
je 0x55d468
push eax
push 0x10007
push dword [ecx*4 + 0x621ebc]
call edx
xor eax, eax
cmp edi, 0x9fbf1
jne 0x55d477
mov eax, 1
mov ecx, dword [0x621a6c]
test ecx, ecx
jne 0x55d485
xor eax, eax
jmp 0x55d493
push 0x50020
push dword [eax*4 + 0x621ebc]
call ecx
cmp eax, 0xff1
setne bl
xor ecx, ecx
mov byte [ebp - 0x2a8], bl
cmp edi, 0x9fbf1
jne 0x55d4b0
mov ecx, 1
mov eax, dword [0x621a70]
test eax, eax
je 0x55dba6
push dword [0x621f28]
push dword [ecx*4 + 0x621ebc]
call eax
test al, al
je 0x55dba6
mov ecx, dword [0x621f28]
mov eax, dword [ecx]
call dword [eax + 0x78]
mov ecx, dword [0x621f28]
movzx eax, ax
mov dword [ebp - 0x290], 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 - 0x2a4]
add eax, 0x10
mov dl, bl
mov dword [esi], eax
call fcn.0058c570
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
cmp edi, 0x9fbf1
jne 0x55d540
mov eax, 1
mov ecx, dword [0x621a6c]
test ecx, ecx
jne 0x55d54e
xor eax, eax
jmp 0x55d55c
push 0x6020000
push dword [eax*4 + 0x621ebc]
call ecx
push eax
mov edx, edi
lea ecx, [ebp - 0x27c]
call fcn.0058f8e0
add esp, 4
lea edx, [ebp - 0x27c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x298]
call fcn.0058d620
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 - 0x298]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x55d5b8
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.0058f8e0
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 0x55d605
mov ecx, dword [ebp - 0x278]
call fcn.0058e510
test al, al
je 0x55d605
mov eax, dword [ebp - 0x278]
cmp dword [eax - 0xc], 0xae
jle 0x55d817
call fcn.0041505f
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x55d621
push 0x80004005
call fcn.00402740
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x294], 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 0x55d65d
push 0x104
lea ecx, [ebp - 0x294]
call fcn.00402c20
mov esi, dword [ebp - 0x294]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [esi - 8]
push esi
call fcn.00528e72
add esp, 8
test eax, eax
js 0x55db9c
cmp eax, dword [esi - 8]
jg 0x55db9c
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 0x55d6c0
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.00528e72
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x55db9c
mov eax, dword [ebp - 0x278]
cmp ecx, dword [eax - 8]
jg 0x55db9c
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 0x55d738
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.00528e72
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x55db9c
mov eax, dword [ebp - 0x278]
cmp ecx, dword [eax - 8]
jg 0x55db9c
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x288], edx
mov word [eax + ecx*2], dx
cmp edi, 0x9fbf1
jne 0x55d791
mov dword [ebp - 0x288], 1
mov edx, dword [0x621a1c]
test edx, edx
je 0x55d7bb
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
mov eax, dword [ebp - 0x288]
push 0xa0009
push dword [eax*4 + 0x621ebc]
call edx
mov eax, dword [ebp - 0x278]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x288], esp
push eax
mov byte [ebp - 0x289], 1
call fcn.00403660
mov ecx, dword [ebp - 0x288]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov cl, byte [ebp - 0x289]
call fcn.00567740
add esi, 0xfffffff0
mov byte [ebp - 4], 5
add esp, 4
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55d811
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 0x55d87d
mov ecx, dword [0x621ea8]
mov eax, 0x2aaaaaab
sub ecx, dword [0x621ea4]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x55d84b
mov ecx, edi
call fcn.0056ac30
call fcn.0056a740
cmp dword [0x617470], 0
jge 0x55da8c
push 0x60baf4
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x280], 0x98400
push eax
mov dword [ebp - 0x2c8], 0x98400
call fcn.0052d7c1
mov ecx, dword [ebp - 0x2a4]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ecx - 0xc]
add ecx, 0xd
add ecx, dword [eax - 0xc]
cmp ecx, 0x104
jle 0x55d8bf
push 0x60baf4
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x280], 0x97902
push eax
mov dword [ebp - 0x2b8], 0x97902
call fcn.0052d7c1
push eax
call esi
test eax, eax
jne 0x55d8eb
push 0x60baf4
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x280], 0x97201
push eax
mov dword [ebp - 0x2c4], 0x97201
call fcn.0052d7c1
mov ecx, dword [ebp - 0x27c]
call fcn.0058e510
test al, al
jne 0x55d91f
push 0x60baf4
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x280], 0x9f402
push eax
mov dword [ebp - 0x2c0], 0x9f402
call fcn.0052d7c1
xor eax, eax
mov ecx, 0xff1
cmp word [ebp - 0x290], cx
setne al
sub esp, 8
dec eax
and eax, 0xfffff400
add eax, 0x1000
mov dword [ebp - 0x290], eax
fild dword [ebp - 0x290]
fstp qword [ebp - 0x2d4]
fld qword [ebp - 0x2d4]
mov ecx, dword [ebp - 0x278]
fstp qword [esp]
call fcn.0058f800
add esp, 8
test al, al
jne 0x55d99d
mov ecx, dword [ebp - 0x29c]
mov edx, 0x9e900
call fcn.00547e70
cmp eax, 2
jne 0x55d99d
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x2ac]
push 0x60baf4
push eax
call fcn.0052d7c1
push dword [ebp - 0x2a8]
lea edx, [ebp - 0x27c]
lea ecx, [ebp - 0x290]
call fcn.0058ce80
add esp, 4
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 7
call fcn.004032d0
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 5
call fcn.00402b60
push ecx
lea eax, [ebp - 0x284]
mov ecx, esp
push eax
call fcn.00402f30
call fcn.005601c0
push ecx
lea eax, [ebp - 0x284]
mov ecx, esp
push eax
call fcn.00402f30
mov dl, byte [ebp - 0x2a8]
lea ecx, [ebp - 0x288]
call fcn.0058c570
add esp, 4
push eax
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 8
call fcn.004032d0
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 5
call fcn.00402b60
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x278]
call fcn.0058cfa0
lea edx, [ebp - 0x284]
mov esi, eax
lea ecx, [ebp - 0x27c]
call fcn.0058cfa0
cmp esi, eax
jg 0x55da56
mov esi, eax
cmp esi, 0x2710
jl 0x55da8c
cmp dword [ebp + 0xc], 0x1faf
je 0x55da8c
push 0x60baf4
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x280], 0x97301
push eax
mov dword [ebp - 0x2b0], 0x97301
call fcn.0052d7c1
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x274]
push edi
call fcn.0059b900
xor eax, eax
mov byte [ebp - 4], 9
cmp edi, 0x9fbf1
jne 0x55dab1
mov eax, 1
mov ecx, dword [0x621a6c]
test ecx, ecx
je 0x55dacb
push 0x10015
push dword [eax*4 + 0x621ebc]
call ecx
mov ecx, eax
mov eax, dword [ebp - 0xa0]
push ecx
mov dword [eax + 0x38], ecx
lea ecx, [ebp - 0x274]
call fcn.0059b510
lea ecx, [ebp - 0x274]
mov dword [ebp - 0xc0], 0x23ae
mov dword [ebp - 0x24], 0x55d340
call fcn.0059b620
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 5
call fcn.0059b770
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 0x55db2e
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 0x55db51
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 - 0x2a4]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55db74
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 0x55db95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
jmp 0x55dc31
push 0x80070057
call fcn.00402740
push 0x60baf4
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x2b4], 0x41a
push eax
call fcn.0052d7c1
cmp dword [0x621f14], 0
jne 0x55dc11
push 0x621f14
call dword [0x62196c]
cmp dword [0x621f14], 0
jne 0x55dc11
push 0x621f14
push dword [ebp - 0x2a0]
call fcn.00567180
cmp dword [0x621f14], 0
jne 0x55dc11
mov ecx, dword [ebp - 0x280]
mov eax, ecx
and eax, 0xff0000
cmp eax, 0x90000
jne 0x55dc11
mov dword [0x621f14], ecx
sub esp, 8
push dword [ebp - 0x2bc]
call fcn.0055e930
mov eax, 0x55dc25
ret
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00557660
test al, al
je 0x55dc81
mov ecx, 0x621ed8
call fcn.00404190
mov ecx, dword [0x621ee0]
mov eax, 0x92492493
sub ecx, dword [0x621ed8]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x80
jae 0x55dc81
push 0x80
mov ecx, 0x621ed8
call fcn.00404750
mov ecx, dword [0x621f44]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x621f48]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [0x621f14], 0
mov byte [0x621f42], 0
je 0x55dcac
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.00527e5c
mov esp, ebp
pop ebp
ret 0xc