Function at 0x446506
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4738e8
call fcn.00453e8c
sub esp, 0x580
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x58a]
mov word [ebp - 0x58c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
push eax
mov byte [ebp - 0xe], 1
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x446582
lea eax, [ebp - 0x58c]
mov byte [ebp - 0xe], bl
push eax
push dword [ebp - 0x20]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x446582
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x15]
push ebx
push eax
lea eax, [ebp - 0x58c]
mov edi, 0x476c94
mov esi, 0x476c8c
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x78], esi
call fcn.00403cfd
push 0x48b148
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 1
call fcn.0043c932
lea ecx, [ebp - 0x98]
call fcn.00446e99
cmp dword [ebp + 0xc], 0x2b
je 0x4465dd
cmp dword [ebp + 0xc], 0x26
jne 0x44661c
lea ecx, [ebp - 0x98]
call fcn.00446da9
test al, al
je 0x446618
lea eax, [ebp - 0xcc]
lea ecx, [ebp - 0x98]
push eax
call fcn.00446ca7
cmp dword [eax + 0xc], ebx
lea ecx, [ebp - 0xcc]
setne byte [ebp - 0xd]
call fcn.00402424
cmp byte [ebp - 0xd], bl
mov byte [ebp - 0xd], bl
jne 0x44661c
mov byte [ebp - 0xd], 1
cmp byte [ebp - 0xe], bl
jne 0x446626
cmp byte [ebp - 0xd], bl
je 0x446686
lea eax, [ebp - 0xe]
push ebx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x28], esi
call fcn.00403bf5
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
sub eax, 5
je 0x446a62
sub eax, 0xf
je 0x4469ef
sub eax, 6
je 0x446863
dec eax
dec eax
je 0x446863
sub eax, 7
je 0x446863
sub eax, 3
je 0x446769
sub eax, 5
je 0x4466a7
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00402424
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x98]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c6a
mov dword [ebp - 0x14], 1
jmp 0x446bbf
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.00447254
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xd
call fcn.00446e99
lea ecx, [ebp - 0x70]
call fcn.00446da9
test al, al
je 0x4466f2
lea eax, [ebp - 0x2b4]
lea ecx, [ebp - 0x70]
push eax
call fcn.00446ca7
cmp dword [eax + 0xc], ebx
lea ecx, [ebp - 0x2b4]
sete byte [ebp + 0xf]
call fcn.00402424
cmp byte [ebp + 0xf], bl
je 0x446744
lea eax, [ebp - 0x1e4]
push 0x26
push eax
call fcn.00446506
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00446bdf
push dword [0x475630]
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004058c7
lea ecx, [ebp - 0x1e4]
mov byte [ebp - 4], 0xd
call fcn.00402424
push 0x48eba0
lea ecx, [ebp - 0x70]
call fcn.0043c932
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c6a
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
jmp 0x446a58
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00447254
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xf
call fcn.00446e99
lea ecx, [ebp - 0x70]
call fcn.00446da9
test al, al
je 0x4467b7
lea eax, [ebp - 0x31c]
lea ecx, [ebp - 0x70]
push eax
call fcn.00446ca7
cmp dword [eax + 0xc], ebx
lea ecx, [ebp - 0x31c]
sete byte [ebp + 0xf]
call fcn.00402424
cmp byte [ebp + 0xf], bl
je 0x44683e
lea eax, [ebp - 0x144]
push ebx
push eax
call fcn.0043c7f5
pop ecx
pop ecx
push dword [0x475630]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0x10
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004058c7
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0xf
call fcn.00402424
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x70]
push eax
call fcn.00446ca7
push dword [0x475630]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0x11
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004058c7
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0xf
call fcn.00402424
push 0x48eb84
lea ecx, [ebp - 0x70]
call fcn.0043c932
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c6a
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
jmp 0x446a58
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jbe 0x4468ad
lea eax, [ebp - 0x1bc]
push ebx
push eax
call fcn.0043c7f5
pop ecx
pop ecx
push dword [0x475630]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 8
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.004058c7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1bc]
jmp 0x446981
lea eax, [ebp - 0x16c]
push 5
push eax
call fcn.00446506
pop ecx
pop ecx
push dword [0x475630]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 9
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.004058c7
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 2
call fcn.00402424
cmp dword [ebp - 0x3c], ebx
je 0x446986
lea eax, [ebp - 0x384]
lea ecx, [ebp - 0x48]
push eax
call fcn.00446bdf
mov ecx, eax
call fcn.00446c04
push dword [0x475630]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xa
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.004058c7
lea ecx, [ebp - 0x384]
mov byte [ebp - 4], 2
call fcn.00402424
cmp dword [ebp + 0xc], 0x23
jne 0x4469c4
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x48]
push eax
call fcn.00446bdf
mov ecx, eax
call fcn.00446c04
push dword [0x475630]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xb
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.004058c7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00402424
cmp dword [ebp + 0xc], 0x23
jne 0x4469c4
lea eax, [ebp - 0xd]
push 1
push eax
push 0x48eb78
lea ecx, [ebp - 0xf4]
call fcn.00415b0f
lea eax, [ebp - 0xf4]
lea ecx, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xc
call fcn.00446dc7
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 2
call fcn.00402424
push 0x48eb54
lea ecx, [ebp - 0x48]
call fcn.0043c932
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c6a
mov dword [ebp - 0x14], 1
jmp 0x446bb3
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.0043c7f5
pop ecx
pop ecx
lea eax, [ebp - 0x16]
push 1
push eax
push 0x48eb4c
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0x12
call fcn.00415b0f
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x70]
push eax
mov byte [ebp - 4], 0x13
call fcn.00446dc7
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0x12
call fcn.00402424
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c6a
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00402424
jmp 0x446bb3
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jbe 0x446ad2
lea eax, [ebp - 0x194]
push ebx
push eax
call fcn.0043c7f5
pop ecx
pop ecx
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.00446ca7
push dword [0x475630]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 4
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.004058c7
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.00402424
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 2
call fcn.00402424
jmp 0x446b86
lea eax, [ebp - 0xc0]
push 2
push eax
call fcn.00446506
pop ecx
pop ecx
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.00446bdf
mov ecx, eax
call fcn.00446c04
push dword [0x475630]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 6
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.004058c7
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 5
call fcn.00402424
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.00402424
lea eax, [ebp - 0x350]
lea ecx, [ebp - 0x48]
push eax
call fcn.00446bdf
mov ecx, eax
call fcn.00446c04
push dword [0x475630]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 7
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.004058c7
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 2
call fcn.00402424
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x446b8d
push 0x48eb30
jmp 0x446b92
push 0x48eb1c
lea ecx, [ebp - 0x48]
call fcn.0043c932
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c6a
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00402424
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], bl
call fcn.00402424
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret