Function at 0x5819e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3391
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x638fe4]
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 edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov edx, dword [0x64417c]
mov dword [ebp - 0x2b8], eax
push dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], eax
push ecx
mov ecx, dword [0x644178]
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2a0], 0
mov dword [0x6441c4], 0
call fcn.00405440
mov eax, dword [0x644178]
add esp, 8
mov ecx, dword [0x644180]
sub ecx, eax
mov dword [0x64417c], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x80
jae 0x581a9a
push 0x80
mov ecx, 0x644178
call fcn.00404b60
push dword [ebp - 0x2b8]
mov edx, dword [0x644194]
push ecx
mov ecx, dword [0x644190]
call fcn.004053e0
mov eax, dword [0x644190]
add esp, 8
mov ecx, dword [0x644198]
sub ecx, eax
mov dword [0x644194], eax
sar ecx, 2
cmp ecx, 0x80
jae 0x581ae1
push 0x80
mov ecx, 0x644190
call fcn.00404f10
mov eax, dword [ebp + 0xc]
cmp eax, 0x1faf
jne 0x581af0
mov eax, 0xcea
mov ecx, dword [0x643bf4]
test ecx, ecx
je 0x581b17
push eax
xor eax, eax
cmp edi, 0x9fbf1
push 0x10007
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call ecx
mov ecx, dword [0x643bf0]
xor eax, eax
test ecx, ecx
je 0x581b3d
cmp edi, 0x9fbf1
push 0x50020
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call ecx
mov ecx, dword [0x643bd8]
cmp eax, 0xff1
setne bl
mov byte [ebp - 0x2c0], bl
test ecx, ecx
je 0x582267
push dword [0x6441c8]
xor eax, eax
cmp edi, 0x9fbf1
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call ecx
test al, al
je 0x582267
mov ecx, dword [0x6441c8]
mov eax, dword [ecx]
call dword [eax + 0x78]
mov ecx, dword [0x6441c8]
movzx eax, ax
mov dword [ebp - 0x2b0], eax
mov eax, dword [ecx]
call dword [eax + 0x14]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00403280
push ecx
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x2ac], esi
mov eax, dword [ebp - 0x2a8]
add eax, 0xfffffff0
push eax
call fcn.004035b0
add esp, 4
lea ecx, [ebp - 0x2c4]
add eax, 0x10
mov dl, bl
mov dword [esi], eax
call fcn.005b1c20
add esp, 4
mov byte [ebp - 4], 2
xor eax, eax
mov ecx, dword [0x643bf0]
test ecx, ecx
je 0x581c07
cmp edi, 0x9fbf1
push 0x6020000
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call ecx
push eax
mov edx, edi
lea ecx, [ebp - 0x29c]
call fcn.005b5f80
add esp, 4
lea edx, [ebp - 0x29c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2cc]
call fcn.005b1770
mov byte [ebp - 4], 4
mov edx, dword [eax]
mov esi, dword [ebp - 0x29c]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x581c7b
cmp dword [esi + 0xc], 0
jl 0x581c6c
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x581c6c
push ecx
call fcn.004035b0
add esp, 4
mov ecx, esi
mov ebx, eax
call fcn.00402670
lea eax, [ebx + 0x10]
mov dword [ebp - 0x29c], eax
jmp 0x581c7b
push dword [edx - 0xc]
lea ecx, [ebp - 0x29c]
push edx
call fcn.00403620
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov ecx, dword [ebp - 0x2cc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x581cc4
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x581cc0
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x581cc0
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x581cc4
mov ecx, edx
call esi
push 0xa0009
mov edx, edi
lea ecx, [ebp - 0x298]
call fcn.005b5f80
add esp, 4
mov byte [ebp - 4], 5
push dword [ebp - 0x298]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
call ebx
test eax, eax
je 0x581d11
mov ecx, dword [ebp - 0x298]
call fcn.005b4740
test al, al
je 0x581d11
mov eax, dword [ebp - 0x298]
cmp dword [eax - 0xc], 0xae
jle 0x581f38
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x581d26
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x581d3b
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x581d3d
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x2b4], esi
mov byte [ebp - 4], 6
mov ebx, 1
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x581d76
push 0x104
lea ecx, [ebp - 0x2b4]
call fcn.00402cf0
mov esi, dword [ebp - 0x2b4]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [esi - 8]
push esi
call fcn.0054c667
add esp, 8
test eax, eax
js 0x58225d
cmp eax, dword [esi - 8]
jg 0x58225d
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edx, ebx
mov eax, dword [ebp - 0x298]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x581dd6
push 0x104
lea ecx, [ebp - 0x298]
call fcn.00402cf0
mov eax, dword [ebp - 0x298]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov eax, dword [ebp - 0x298]
push dword [eax - 8]
push eax
call fcn.0054c667
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x58225d
mov eax, dword [ebp - 0x298]
cmp ecx, dword [eax - 8]
jg 0x58225d
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x298]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x298]
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, 0x104
or ecx, ebx
jge 0x581e49
push 0x104
lea ecx, [ebp - 0x298]
call fcn.00402cf0
mov eax, dword [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [ebp - 0x298]
push dword [eax - 8]
push eax
call fcn.0054c667
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x58225d
mov eax, dword [ebp - 0x298]
cmp ecx, dword [eax - 8]
jg 0x58225d
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x298]
mov word [eax + ecx*2], dx
mov edx, dword [0x643be0]
test edx, edx
je 0x581ebc
mov eax, dword [ebp - 0x298]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
xor eax, eax
cmp edi, 0x9fbf1
push 0xa0009
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call edx
push ecx
mov ebx, esp
mov byte [ebp - 0x2a1], 1
mov dword [ebp - 0x2ac], ebx
mov eax, dword [ebp - 0x298]
add eax, 0xfffffff0
push eax
call fcn.004035b0
mov cl, byte [ebp - 0x2a1]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
call fcn.0058c700
add esp, 4
mov byte [ebp - 4], 5
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x581f32
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x581f30
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x581f30
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x581f32
call edx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [ebp + 0xc], 0xcf5
jne 0x581f9e
mov ecx, dword [0x64405c]
mov eax, 0x2aaaaaab
sub ecx, dword [0x644058]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x581f6c
mov ecx, edi
call fcn.0058fbb0
call fcn.0058f6f0
cmp dword [0x639940], 0
jge 0x5821af
push 0x62e4b0
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2a0], 0x98400
push eax
mov dword [ebp - 0x2d0], 0x98400
call fcn.005479aa
mov ecx, dword [ebp - 0x2c4]
mov eax, dword [ebp - 0x29c]
mov ecx, dword [ecx - 0xc]
add ecx, 0xd
add ecx, dword [eax - 0xc]
cmp ecx, 0x104
jle 0x581fe0
push 0x62e4b0
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2a0], 0x97902
push eax
mov dword [ebp - 0x2d4], 0x97902
call fcn.005479aa
push eax
call ebx
test eax, eax
jne 0x58200c
push 0x62e4b0
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2a0], 0x97201
push eax
mov dword [ebp - 0x2d8], 0x97201
call fcn.005479aa
mov ecx, dword [ebp - 0x29c]
call fcn.005b4740
test al, al
jne 0x582040
push 0x62e4b0
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2a0], 0x9f402
push eax
mov dword [ebp - 0x2dc], 0x9f402
call fcn.005479aa
xor eax, eax
mov ecx, 0xff1
cmp word [ebp - 0x2b0], cx
setne al
sub esp, 8
dec eax
and eax, 0xfffff400
add eax, 0x1000
mov dword [ebp - 0x2b0], eax
fild dword [ebp - 0x2b0]
fstp qword [ebp - 0x2f4]
fld qword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x298]
fstp qword [esp]
call fcn.005b4a20
mov ebx, dword [ebp - 0x2bc]
add esp, 8
test al, al
jne 0x5820c0
mov edx, 0x9e900
mov ecx, ebx
call fcn.0056c650
cmp eax, 2
jne 0x5820c0
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2e0]
push 0x62e4b0
push eax
call fcn.005479aa
push dword [ebp - 0x2c0]
lea edx, [ebp - 0x29c]
lea ecx, [ebp - 0x2b0]
call fcn.005b47d0
add esp, 4
push eax
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 7
call fcn.00403220
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 5
call fcn.00402b90
push ecx
lea eax, [ebp - 0x2a8]
mov ecx, esp
push eax
call fcn.00403350
call fcn.00584f50
push ecx
lea eax, [ebp - 0x2a8]
mov ecx, esp
push eax
call fcn.00403350
mov dl, byte [ebp - 0x2c0]
lea ecx, [ebp - 0x2ac]
call fcn.005b1c20
add esp, 4
push eax
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 8
call fcn.00403220
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 5
call fcn.00402b90
lea edx, [ebp - 0x2a8]
lea ecx, [ebp - 0x298]
call fcn.005b1de0
lea edx, [ebp - 0x2a8]
mov esi, eax
lea ecx, [ebp - 0x29c]
call fcn.005b1de0
cmp esi, eax
jg 0x582179
mov esi, eax
cmp esi, 0x2710
jl 0x5821b5
cmp dword [ebp + 0xc], 0x1faf
je 0x5821b5
push 0x62e4b0
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2a0], 0x97301
push eax
mov dword [ebp - 0x2e4], 0x97301
call fcn.005479aa
mov ebx, dword [ebp - 0x2bc]
push ebx
push edi
lea ecx, [ebp - 0x294]
call fcn.005c0220
mov byte [ebp - 4], 9
mov ecx, dword [0x643bf0]
test ecx, ecx
je 0x5821ee
xor eax, eax
cmp edi, 0x9fbf1
push 0x10015
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call ecx
mov ecx, eax
mov eax, dword [ebp - 0xa0]
push ecx
mov dword [eax + 0x38], ecx
lea ecx, [ebp - 0x294]
call fcn.005bfe70
lea ecx, [ebp - 0x294]
mov dword [ebp - 0xc0], 0x23ae
mov dword [ebp - 0x24], 0x5819c0
call fcn.005bff70
lea ecx, [ebp - 0x294]
call fcn.005c00f0
lea ecx, [ebp - 0x298]
call fcn.00402b90
lea ecx, [ebp - 0x29c]
call fcn.00402b90
lea ecx, [ebp - 0x2c4]
call fcn.00402b90
lea ecx, [ebp - 0x2a8]
call fcn.00402b90
xor ebx, ebx
jmp 0x5822f2
push 0x80070057
call fcn.00402650
push 0x62e4b0
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x2e8], 0x42d
push eax
call fcn.005479aa
cmp dword [0x6441b4], 0
jne 0x5822d2
push 0x6441b4
call dword [0x643b34]
cmp dword [0x6441b4], 0
jne 0x5822d2
push 0x6441b4
push dword [ebp - 0x2c8]
call fcn.0058c230
cmp dword [0x6441b4], 0
jne 0x5822d2
mov ecx, dword [ebp - 0x2a0]
mov eax, ecx
and eax, 0xff0000
cmp eax, 0x90000
jne 0x5822d2
mov dword [0x6441b4], ecx
sub esp, 8
push dword [ebp - 0x2b8]
call fcn.00583250
mov eax, 0x5822e6
ret
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.0057b950
test al, al
je 0x582359
push dword [ebp - 0x2b8]
mov edx, dword [0x64417c]
push ecx
mov ecx, dword [0x644178]
call fcn.00405440
mov eax, dword [0x644178]
add esp, 8
mov ecx, dword [0x644180]
sub ecx, eax
mov dword [0x64417c], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x80
jae 0x582359
push 0x80
mov ecx, 0x644178
call fcn.00404b60
mov ecx, dword [0x6441e4]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x6441e8]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [0x6441b4], 0
mov byte [0x6441e2], 0
je 0x582384
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.00544774
mov esp, ebp
pop ebp
ret 0xc