Function at 0x485d60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5a205c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7cf
push 0x5a30f0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4862a3
mov esi, 0x5a30f0
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x485da0
sub esi, ecx
mov ecx, dword [0x5a504c]
sar esi, 1
mov dword [ebp - 0x214], ecx
cmp esi, ecx
ja 0x485df0
cmp ecx, 8
mov dword [0x5a5048], esi
mov edi, 0x5a5038
cmovae edi, dword [0x5a5038]
add esi, esi
push esi
push 0x5a30f0
push edi
call fcn.00497eb0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x485ef1
cmp esi, 0x7ffffffe
ja 0x4862b6
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x485e15
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x485e4f
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x485e30
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x485e4f
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x4862c0
add eax, eax
cmp eax, 0x1000
jb 0x485e76
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4862c0
push ecx
call fcn.004959e3
add esp, 4
test eax, eax
je 0x4862bb
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x485e89
test eax, eax
je 0x485e87
push eax
call fcn.004959e3
add esp, 4
mov edi, eax
jmp 0x485e89
xor edi, edi
mov dword [0x5a5048], esi
add esi, esi
push esi
push 0x5a30f0
push edi
mov dword [0x5a504c], ebx
call fcn.00497eb0
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x485eeb
lea ecx, [eax*2 + 2]
mov eax, dword [0x5a5038]
cmp ecx, 0x1000
jb 0x485ee1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4862bb
mov eax, edx
push ecx
push eax
call fcn.00495c64
add esp, 8
mov dword [0x5a5038], edi
mov ebx, 0x5c
mov eax, 0x5a408e
lea edx, [ebx - 0x2d]
nop
movzx ecx, word [eax]
cmp bx, cx
je 0x485f0d
cmp dx, cx
jne 0x485f14
cmp eax, 0x5a408e
jne 0x485f20
sub eax, 2
cmp eax, 0x5a30f0
jae 0x485f00
jmp 0x485f37
sub eax, 0x5a30f0
sar eax, 1
je 0x485f37
lea ecx, [eax*2 + 0x5a30f2]
cmp eax, 0x7cf
jb 0x485f3c
mov ecx, 0x5a30f0
mov esi, ecx
mov dword [ebp - 0x214], ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x485f47
mov eax, dword [0x5a5064]
sub esi, edx
sar esi, 1
mov dword [ebp - 0x218], eax
cmp esi, eax
ja 0x485f92
cmp eax, 8
mov dword [0x5a5060], esi
mov edi, 0x5a5050
cmovae edi, dword [0x5a5050]
add esi, esi
push esi
push ecx
push edi
call fcn.00497eb0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x486098
cmp esi, 0x7ffffffe
ja 0x4862b6
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x485fb7
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x485ff0
mov ecx, eax
mov edx, 0x7ffffffe
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x485fd2
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x485ff0
add eax, ecx
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x4862c0
add eax, eax
cmp eax, 0x1000
jb 0x486017
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4862c0
push ecx
call fcn.004959e3
add esp, 4
test eax, eax
je 0x4862bb
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x48602a
test eax, eax
je 0x486028
push eax
call fcn.004959e3
add esp, 4
mov edi, eax
jmp 0x48602a
xor edi, edi
mov dword [0x5a5060], esi
add esi, esi
push esi
push dword [ebp - 0x214]
mov dword [0x5a5064], ebx
push edi
call fcn.00497eb0
mov ecx, dword [ebp - 0x218]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp ecx, 8
jb 0x48608d
mov eax, dword [0x5a5050]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x486083
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4862bb
mov eax, edx
push ecx
push eax
call fcn.00495c64
add esp, 8
mov ebx, 0x5c
mov dword [0x5a5050], edi
mov eax, 0x5a408e
mov edx, 0x2f
movzx ecx, word [eax]
cmp bx, cx
je 0x4860af
cmp dx, cx
jne 0x4860b6
cmp eax, 0x5a408e
jne 0x4860c2
sub eax, 2
cmp eax, 0x5a30f0
jae 0x4860a2
jmp 0x4860dc
sub eax, 0x5a30f0
sar eax, 1
je 0x4860dc
cmp eax, 0x7cf
jae 0x4860dc
xor ecx, ecx
mov word [eax*2 + 0x5a30f2], cx
push 0
push 0x1a
push 0x5a4090
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x486170
mov ecx, 0x5a4090
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486100
sub ecx, edx
sar ecx, 1
lea edx, [ecx + 1]
cmp edx, 0x7cf
ja 0x486170
lea eax, [ecx + 6]
cmp eax, 0x7cf
ja 0x486170
test ecx, ecx
je 0x486147
cmp word [ecx*2 + 0x5a408e], 0x5c
je 0x486145
lea eax, [ecx + 7]
cmp eax, 0x7cf
ja 0x486170
mov word [ecx*2 + 0x5a4090], bx
mov ecx, edx
movq xmm0, qword [str.Zoom_]
mov ax, word [0x4f3118]
movq qword [ecx*2 + 0x5a4090], xmm0
mov word [ecx*2 + 0x5a4098], ax
xor eax, eax
mov word [ecx*2 + 0x5a409a], ax
push 4
push 0
mov dword [ebp - 0x218], 0x24
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x5a5034], eax
test eax, eax
je 0x4862a3
mov dword [eax], 0
xor esi, esi
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00498440
mov edi, dword [ebp + esi - 0x218]
lea eax, [ebp - 0x210]
add esp, 0xc
push 0
push edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4861f6
cmp edi, 0x24
jne 0x48629e
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x48629e
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486200
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x212], 0x5c
je 0x486223
mov word [ebp + ecx*2 - 0x210], bx
inc ecx
lea edi, [ecx + ecx]
lea ebx, [edi + 2]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x5a5034]
mov dword [esi + ecx], eax
mov eax, dword [0x5a5034]
mov eax, dword [esi + eax]
test eax, eax
je 0x48629e
push ebx
push 0
push eax
call fcn.00498440
push edi
lea eax, [ebp - 0x210]
push eax
mov eax, dword [0x5a5034]
push dword [esi + eax]
call fcn.00497eb0
add esi, 4
add esp, 0x18
mov ebx, 0x5c
cmp esi, 4
jb 0x4861a0
pop edi
pop esi
lea eax, [ebx - 0x5b]
mov dword [0x5a5030], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004959d0
mov esp, ebp
pop ebp
ret
call fcn.00485cf0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004959d0
mov esp, ebp
pop ebp
ret
call fcn.004017df
call fcn.0049ed71
call fcn.00401759
int3