Function at 0x55d3a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aff3e
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 0x55d443
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 0x55d471
push 0x80
mov ecx, 0x621ef0
call fcn.00404b90
mov eax, dword [ebp + 0xc]
cmp eax, 0x1faf
jne 0x55d480
mov eax, 0xcea
xor ecx, ecx
cmp edi, 0x9fbf1
jne 0x55d48f
mov ecx, 1
mov edx, dword [0x621a3c]
test edx, edx
je 0x55d4a8
push eax
push 0x10007
push dword [ecx*4 + 0x621ebc]
call edx
xor eax, eax
cmp edi, 0x9fbf1
jne 0x55d4b7
mov eax, 1
mov ecx, dword [0x621a6c]
test ecx, ecx
jne 0x55d4c5
xor eax, eax
jmp 0x55d4d3
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 0x55d4f0
mov ecx, 1
mov eax, dword [0x621a70]
test eax, eax
je 0x55dbe6
push dword [0x621f28]
push dword [ecx*4 + 0x621ebc]
call eax
test al, al
je 0x55dbe6
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.0058c270
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
cmp edi, 0x9fbf1
jne 0x55d580
mov eax, 1
mov ecx, dword [0x621a6c]
test ecx, ecx
jne 0x55d58e
xor eax, eax
jmp 0x55d59c
push 0x6020000
push dword [eax*4 + 0x621ebc]
call ecx
push eax
mov edx, edi
lea ecx, [ebp - 0x27c]
call fcn.0058f590
add esp, 4
lea edx, [ebp - 0x27c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x298]
call fcn.0058d320
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 0x55d5f8
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.0058f590
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 0x55d645
mov ecx, dword [ebp - 0x278]
call fcn.0058e210
test al, al
je 0x55d645
mov eax, dword [ebp - 0x278]
cmp dword [eax - 0xc], 0xae
jle 0x55d857
call fcn.00414e1f
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x55d661
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 0x55d69d
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.00528e42
add esp, 8
test eax, eax
js 0x55dbdc
cmp eax, dword [esi - 8]
jg 0x55dbdc
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 0x55d700
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 0x55dbdc
mov eax, dword [ebp - 0x278]
cmp ecx, dword [eax - 8]
jg 0x55dbdc
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 0x55d778
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 0x55dbdc
mov eax, dword [ebp - 0x278]
cmp ecx, dword [eax - 8]
jg 0x55dbdc
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 0x55d7d1
mov dword [ebp - 0x288], 1
mov edx, dword [0x621a1c]
test edx, edx
je 0x55d7fb
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.00567780
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 0x55d851
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 0x55d8bd
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 0x55d88b
mov ecx, edi
call fcn.0056ac70
call fcn.0056a780
cmp dword [0x617470], 0
jge 0x55dacc
push 0x60bae4
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x280], 0x98400
push eax
mov dword [ebp - 0x2c8], 0x98400
call fcn.0052d791
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 0x55d8ff
push 0x60bae4
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x280], 0x97902
push eax
mov dword [ebp - 0x2b8], 0x97902
call fcn.0052d791
push eax
call esi
test eax, eax
jne 0x55d92b
push 0x60bae4
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x280], 0x97201
push eax
mov dword [ebp - 0x2c4], 0x97201
call fcn.0052d791
mov ecx, dword [ebp - 0x27c]
call fcn.0058e210
test al, al
jne 0x55d95f
push 0x60bae4
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x280], 0x9f402
push eax
mov dword [ebp - 0x2c0], 0x9f402
call fcn.0052d791
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.0058f4b0
add esp, 8
test al, al
jne 0x55d9dd
mov ecx, dword [ebp - 0x29c]
mov edx, 0x9e900
call fcn.00547e40
cmp eax, 2
jne 0x55d9dd
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x2ac]
push 0x60bae4
push eax
call fcn.0052d791
push dword [ebp - 0x2a8]
lea edx, [ebp - 0x27c]
lea ecx, [ebp - 0x290]
call fcn.0058cb80
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.00560200
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.0058c270
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.0058cca0
lea edx, [ebp - 0x284]
mov esi, eax
lea ecx, [ebp - 0x27c]
call fcn.0058cca0
cmp esi, eax
jg 0x55da96
mov esi, eax
cmp esi, 0x2710
jl 0x55dacc
cmp dword [ebp + 0xc], 0x1faf
je 0x55dacc
push 0x60bae4
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x280], 0x97301
push eax
mov dword [ebp - 0x2b0], 0x97301
call fcn.0052d791
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x274]
push edi
call fcn.0059b530
xor eax, eax
mov byte [ebp - 4], 9
cmp edi, 0x9fbf1
jne 0x55daf1
mov eax, 1
mov ecx, dword [0x621a6c]
test ecx, ecx
je 0x55db0b
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.0059b140
lea ecx, [ebp - 0x274]
mov dword [ebp - 0xc0], 0x23ae
mov dword [ebp - 0x24], 0x55d380
call fcn.0059b250
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 5
call fcn.0059b3a0
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 0x55db6e
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 0x55db91
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 0x55dbb4
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 0x55dbd5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
jmp 0x55dc71
push 0x80070057
call fcn.00402740
push 0x60bae4
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x2b4], 0x41a
push eax
call fcn.0052d791
cmp dword [0x621f14], 0
jne 0x55dc51
push 0x621f14
call dword [0x62196c]
cmp dword [0x621f14], 0
jne 0x55dc51
push 0x621f14
push dword [ebp - 0x2a0]
call fcn.005671c0
cmp dword [0x621f14], 0
jne 0x55dc51
mov ecx, dword [ebp - 0x280]
mov eax, ecx
and eax, 0xff0000
cmp eax, 0x90000
jne 0x55dc51
mov dword [0x621f14], ecx
sub esp, 8
push dword [ebp - 0x2bc]
call fcn.0055e970
mov eax, 0x55dc65
ret
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00557630
test al, al
je 0x55dcc1
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 0x55dcc1
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 0x55dcec
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