Function at 0x428920
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x4c8849
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x50d024]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov ecx, str.ProgramFiles64Folder
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x428988
test dx, dx
je 0x428984
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x428988
add eax, 4
add ecx, 4
test dx, dx
jne 0x428962
xor eax, eax
jmp 0x42898d
sbb eax, eax
or eax, 1
or edi, 0xffffffff
test eax, eax
jne 0x428a90
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040cf80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str.ProgramW6432
call fcn.004295f0
test eax, eax
je 0x428a6f
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00406a40
mov edx, dword [ebx]
mov esi, dword [edx - 0xc]
test esi, esi
jle 0x428a28
lea eax, [esi - 1]
test eax, eax
js 0x429207
cmp eax, esi
jg 0x429207
cmp word [edx + eax*2], 0x5c
je 0x428a28
mov eax, dword [edx - 8]
lea edi, [esi + 1]
mov ecx, 1
sub eax, edi
sub ecx, dword [edx - 4]
or eax, ecx
jge 0x428a09
push edi
mov ecx, ebx
call fcn.004092e0
mov edx, dword [ebx]
mov eax, 0x5c
mov word [edx + esi*2], ax
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x429207
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428a4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00498bc4
lea esp, [ebp + 0x414]
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428a90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0xd], 1
call fcn.00408d40
mov ecx, eax
test ecx, ecx
je 0x4291fd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
mov eax, str.SystemFolder
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x428acf
movzx eax, ax
push eax
call fcn.00409090
jmp 0x428adb
push 0xc
push str.SystemFolder
call fcn.00409430
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4291fd
mov ecx, dword [ebx]
mov edx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x428b17
test si, si
je 0x428b13
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x428b17
add ecx, 4
add edx, 4
test si, si
jne 0x428af1
xor esi, esi
jmp 0x428b1c
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428b3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x428b76
lea eax, [ebp + 0x208]
push eax
push esi
push esi
push 0x29
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp + 0x208]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428b60
lea eax, [ebp + 0x208]
jmp 0x42912e
call fcn.00408d40
mov ecx, eax
test ecx, ecx
je 0x4291fd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 6
mov eax, str.System32Folder
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x428bb1
movzx eax, ax
push eax
call fcn.00409090
jmp 0x428bbd
push 0xe
push str.System32Folder
call fcn.00409430
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4291fd
mov ecx, dword [ebx]
mov edx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x428bf9
test si, si
je 0x428bf5
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x428bf9
add ecx, 4
add edx, 4
test si, si
jne 0x428bd3
xor esi, esi
jmp 0x428bfe
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428c1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x428c8a
push 0x104
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x5c
mov word [ebp + eax*2 + 0x208], cx
lea eax, [eax*2 + 2]
cmp eax, 0x208
jae 0x429211
xor ecx, ecx
lea edx, [ebp + 0x208]
mov word [ebp + eax + 0x208], cx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x428c64
sub edx, esi
lea eax, [ebp + 0x208]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00409430
mov al, byte [ebp - 0xd]
jmp 0x428a4c
call fcn.00408d40
mov ecx, eax
test ecx, ecx
je 0x4291fd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 9
mov eax, str.WindowsFolder
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x428cc5
movzx eax, ax
push eax
call fcn.00409090
jmp 0x428cd1
push 0xd
push str.WindowsFolder
call fcn.00409430
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4291fd
mov ecx, dword [ebx]
mov edx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x428d0d
test si, si
je 0x428d09
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x428d0d
add ecx, 4
add edx, 4
test si, si
jne 0x428ce7
xor esi, esi
jmp 0x428d12
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428d30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x428da6
push 0x104
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, 0x5c
mov word [ebp + eax*2 + 0x208], cx
lea eax, [eax*2 + 2]
cmp eax, 0x208
jae 0x429211
xor ecx, ecx
mov word [ebp + eax + 0x208], cx
lea ecx, [ebp + 0x208]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428d80
sub ecx, edx
lea eax, [ebp + 0x208]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00409430
mov al, byte [ebp - 0xd]
jmp 0x428a4c
call fcn.00408d40
mov ecx, eax
test ecx, ecx
je 0x4291fd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xc
mov eax, str.WindowsVolume
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x428de1
movzx eax, ax
push eax
call fcn.00409090
jmp 0x428ded
push 0xd
push str.WindowsVolume
call fcn.00409430
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4291fd
mov ecx, dword [ebx]
mov edx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x428e29
test si, si
je 0x428e25
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x428e29
add ecx, 4
add edx, 4
test si, si
jne 0x428e03
xor esi, esi
jmp 0x428e2e
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x428e4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x428e82
push 0x104
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
lea ecx, [ebp + 0x208]
mov word [ebp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428e72
jmp 0x428d8b
mov edi, dword [ebx]
mov ecx, str.TempFolder
mov eax, edi
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x428eb6
test dx, dx
je 0x428eb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x428eb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x428e90
xor eax, eax
jmp 0x428ebb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x428f01
lea eax, [ebp + 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, eax
cmp eax, 0x208
jae 0x429211
xor ecx, ecx
mov word [ebp + eax + 0x208], cx
lea ecx, [ebp + 0x208]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428ef1
jmp 0x428d8b
mov ecx, str.SETUPEXEDIR
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x428f2e
test dx, dx
je 0x428f2a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x428f2e
add eax, 4
add ecx, 4
test dx, dx
jne 0x428f08
xor eax, eax
jmp 0x428f33
sbb eax, eax
or eax, 1
test eax, eax
jne 0x428fca
mov eax, dword [0x5119d8]
cmp dword [eax - 0xc], 0
jne 0x428fb6
push 0x104
lea eax, [ebp + 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub eax, 1
je 0x428f70
nop
cmp word [ebp + eax*2 + 0x208], 0x5c
je 0x428f70
sub eax, 1
jne 0x428f60
lea eax, [eax*2 + 2]
cmp eax, 0x208
jae 0x429211
xor ecx, ecx
mov word [ebp + eax + 0x208], cx
lea ecx, [ebp + 0x208]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428f95
sub ecx, edx
lea eax, [ebp + 0x208]
sar ecx, 1
push ecx
push eax
mov ecx, 0x5119d8
call fcn.00409430
push 0x5119d8
mov ecx, ebx
call fcn.00406a40
mov al, byte [ebp - 0xd]
jmp 0x428a4c
xor esi, esi
nop dword [eax]
mov eax, dword [esi*4 + 0x4ecd7c]
test eax, eax
je 0x4291fd
mov ecx, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x429007
test dx, dx
je 0x429003
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x429007
add ecx, 4
add eax, 4
test dx, dx
jne 0x428fe1
xor eax, eax
jmp 0x42900c
sbb eax, eax
or eax, 1
test eax, eax
je 0x42901d
inc esi
cmp esi, 0xe
jb 0x428fd0
xor al, al
jmp 0x428a4c
cmp esi, 0xe
jae 0x429016
lea eax, [ebp - 0x18]
push eax
push dword [esi*4 + 0x4ecd44]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4291a7
mov eax, dword fs:[0x2c]
mov edi, dword [esi*4 + 0x4ecd44]
mov ecx, dword [eax]
mov eax, dword [0x511d20]
cmp eax, dword [ecx + 4]
jle 0x4290a8
push 0x511d20
call fcn.00498d05
add esp, 4
cmp dword [0x511d20], 0xffffffff
jne 0x4290a8
mov dword [ebp - 4], 0xf
push 0x4d8470
mov dword [0x511d24], 0x4ecb7c
mov dword [0x511d28], 0
call fcn.00499017
mov dword [ebp - 4], 0xffffffff
push 0x511d20
call fcn.00498cbb
add esp, 8
cmp dword [0x511d28], 0
jne 0x429100
push str.shfolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov eax, dword [0x511d28]
cmp esi, eax
je 0x4290db
mov eax, dword [0x511d24]
mov ecx, 0x511d24
call dword [eax + 4]
mov eax, esi
mov dword [0x511d28], eax
test eax, eax
je 0x4290f4
push 0x4eccf4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x511b7c], eax
test eax, eax
jne 0x429109
mov ecx, ebx
call fcn.00429220
jmp 0x428a4c
mov eax, dword [0x511b7c]
test eax, eax
je 0x4290f4
lea ecx, [ebp]
push ecx
push 0
push 0
push edi
push 0
call eax
test eax, eax
jne 0x4290f4
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429120
lea eax, [ebp]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00409430
mov edx, dword [ebx]
mov edi, dword [edx - 0xc]
test edi, edi
jle 0x428c82
lea eax, [edi - 1]
test eax, eax
js 0x429207
cmp eax, edi
jg 0x429207
cmp word [edx + eax*2], 0x5c
je 0x428c82
mov eax, dword [edx - 8]
lea esi, [edi + 1]
mov ecx, 1
sub eax, esi
sub ecx, dword [edx - 4]
or ecx, eax
jge 0x429184
push esi
mov ecx, ebx
call fcn.004092e0
mov edx, dword [ebx]
mov eax, 0x5c
mov word [edx + edi*2], ax
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x429207
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + esi*2], cx
mov al, byte [ebp - 0xd]
jmp 0x428a4c
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov esi, eax
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
test esi, esi
je 0x429016
lea ecx, [ebp + 0x208]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4291e7
lea eax, [ebp + 0x208]
jmp 0x42912e
push 0x80004005
call fcn.00409410
push 0x80070057
call fcn.00409410
call fcn.004991c6
int3