Function at 0x424750
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456036
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov edi, ecx
mov eax, dword [edi]
mov ecx, str.ProgramFiles64Folder
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4247b6
test dx, dx
je 0x4247b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4247b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x424790
xor eax, eax
jmp 0x4247bb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4248c4
push edi
lea ecx, [ebp - 0x630]
call fcn.00407510
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x630]
push str.ProgramW6432
call fcn.00411d50
test eax, eax
je 0x42489f
lea eax, [ebp - 0x630]
mov ecx, edi
push eax
call fcn.00407c70
mov edx, dword [edi]
mov esi, dword [edx - 0xc]
test esi, esi
jle 0x42485c
lea eax, [esi - 1]
test eax, eax
js 0x425250
cmp eax, esi
jg 0x425250
cmp word [edx + eax*2], 0x5c
je 0x42485c
mov eax, dword [edx - 8]
lea ebx, [esi + 1]
mov ecx, 1
sub eax, ebx
sub ecx, dword [edx - 4]
or eax, ecx
jge 0x42483d
push ebx
mov ecx, edi
call fcn.00403ef0
mov edx, dword [edi]
mov eax, 0x5c
mov word [edx + esi*2], ax
mov eax, dword [edi]
cmp ebx, dword [eax - 8]
jg 0x425250
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x630]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424881
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 - 0x10]
xor ecx, ebp
call fcn.00438889
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x630]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4248c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0x629], 1
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x425246
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x630], eax
mov dword [ebp - 4], 3
mov eax, str.SystemFolder
lea ecx, [ebp - 0x630]
test eax, 0xffff0000
jne 0x42490c
movzx eax, ax
push eax
call fcn.00403ca0
jmp 0x424918
push 0xc
push str.SystemFolder
call fcn.00404040
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x630]
test eax, eax
je 0x425246
mov ecx, dword [edi]
mov edx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x424957
test si, si
je 0x424953
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x424957
add ecx, 4
add edx, 4
test si, si
jne 0x424931
xor esi, esi
jmp 0x42495c
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42497b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x4249bc
lea eax, [ebp - 0x218]
push eax
movzx eax, bl
xor eax, 1
push esi
push esi
lea eax, [eax*4 + 0x25]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4249a6
lea eax, [ebp - 0x218]
jmp 0x425001
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x425246
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x630], eax
mov dword [ebp - 4], 6
mov eax, str.System32Folder
lea ecx, [ebp - 0x630]
test eax, 0xffff0000
jne 0x4249fd
movzx eax, ax
push eax
call fcn.00403ca0
jmp 0x424a09
push 0xe
push str.System32Folder
call fcn.00404040
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x630]
test eax, eax
je 0x425246
mov ecx, dword [edi]
mov edx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x424a48
test si, si
je 0x424a44
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x424a48
add ecx, 4
add edx, 4
test si, si
jne 0x424a22
xor esi, esi
jmp 0x424a4d
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424a6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x424adf
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x218], cx
lea eax, [eax*2 + 2]
cmp eax, 0x208
jae 0x42525a
xor ecx, ecx
lea edx, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x424ab6
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00404040
mov al, byte [ebp - 0x629]
jmp 0x424883
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x425246
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x630], eax
mov dword [ebp - 4], 9
mov eax, str.WindowsFolder
lea ecx, [ebp - 0x630]
test eax, 0xffff0000
jne 0x424b20
movzx eax, ax
push eax
call fcn.00403ca0
jmp 0x424b2c
push 0xd
push str.WindowsFolder
call fcn.00404040
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x630]
test eax, eax
je 0x425246
mov ecx, dword [edi]
mov edx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x424b6b
test si, si
je 0x424b67
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x424b6b
add ecx, 4
add edx, 4
test si, si
jne 0x424b45
xor esi, esi
jmp 0x424b70
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424b8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x424bff
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x218], cx
lea eax, [eax*2 + 2]
cmp eax, 0x208
jae 0x42525a
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424bd6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00404040
mov al, byte [ebp - 0x629]
jmp 0x424883
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x425246
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x630], eax
mov dword [ebp - 4], 0xc
mov eax, str.WindowsVolume
lea ecx, [ebp - 0x630]
test eax, 0xffff0000
jne 0x424c40
movzx eax, ax
push eax
call fcn.00403ca0
jmp 0x424c4c
push 0xd
push str.WindowsVolume
call fcn.00404040
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x630]
test eax, eax
je 0x425246
mov ecx, dword [edi]
mov edx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x424c8b
test si, si
je 0x424c87
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x424c8b
add ecx, 4
add edx, 4
test si, si
jne 0x424c65
xor esi, esi
jmp 0x424c90
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x424cac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x424ce4
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
lea ecx, [ebp - 0x218]
mov word [ebp - 0x212], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424cd4
jmp 0x424be1
mov ecx, dword [edi]
mov edx, str.TempFolder
mov eax, ecx
nop dword [eax]
mov si, word [eax]
cmp si, word [edx]
jne 0x424d16
test si, si
je 0x424d12
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x424d16
add eax, 4
add edx, 4
test si, si
jne 0x424cf0
xor eax, eax
jmp 0x424d1b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x424d61
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, eax
cmp eax, 0x208
jae 0x42525a
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424d51
jmp 0x424be1
mov eax, str.SETUPEXEDIR
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x424d8c
test dx, dx
je 0x424d88
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x424d8c
add ecx, 4
add eax, 4
test dx, dx
jne 0x424d66
xor eax, eax
jmp 0x424d91
sbb eax, eax
or eax, 1
test eax, eax
jne 0x424e2d
mov eax, dword [0x479ee4]
cmp dword [eax - 0xc], 0
jne 0x424e16
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub eax, 1
je 0x424dd0
nop dword [eax]
cmp word [ebp + eax*2 - 0x218], 0x5c
je 0x424dd0
sub eax, 1
jne 0x424dc0
lea eax, [eax*2 + 2]
cmp eax, 0x208
jae 0x42525a
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424df5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x479ee4
call fcn.00404040
push 0x479ee4
mov ecx, edi
call fcn.00407c70
mov al, byte [ebp - 0x629]
jmp 0x424883
xor esi, esi
nop
mov edx, dword [esi*4 + 0x469d70]
mov ecx, edi
call fcn.00411cc0
test al, al
jne 0x424e4f
inc esi
cmp esi, 0xe
jb 0x424e30
xor al, al
jmp 0x424883
lea eax, [ebp - 0x638]
push eax
push dword [esi*4 + 0x469d38]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4251dc
mov eax, dword fs:[0x2c]
mov ebx, dword [esi*4 + 0x469d38]
mov ecx, dword [eax]
mov eax, dword [0x479f5c]
cmp eax, dword [ecx + 4]
jle 0x424edb
push 0x479f5c
call fcn.00438c34
add esp, 4
cmp dword [0x479f5c], 0xffffffff
jne 0x424edb
mov dword [ebp - 4], 0xf
push 0x459a40
mov dword [0x479f60], 0x4659f0
mov dword [0x479f64], 0
call fcn.00438f46
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x479f5c
call fcn.00438bea
add esp, 4
cmp dword [0x479f64], 0
jne 0x424fbe
push str.shfolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov eax, dword [0x479f64]
cmp esi, eax
je 0x424f12
mov eax, dword [0x479f60]
mov ecx, 0x479f60
call dword [eax + 4]
mov eax, esi
mov dword [0x479f64], eax
test eax, eax
je 0x424f2f
push 0x469ce8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x479e54], eax
test eax, eax
jne 0x424fcb
mov eax, dword [0x478d18]
cmp eax, 0xffffffff
jne 0x425086
lea eax, [ebp - 0x63c]
mov dword [0x478d18], 0
push eax
lea edx, [ebp - 0x630]
mov ecx, 0x469e10
call fcn.0042b5e0
add esp, 4
test al, al
je 0x424f70
cmp dword [ebp - 0x630], 5
ja 0x424faf
je 0x424faf
mov eax, dword [0x478d18]
cmp eax, 1
je 0x425089
lea eax, [ebp - 0x63c]
mov ecx, str.Shell32.dll
push eax
lea edx, [ebp - 0x630]
call fcn.0042b5e0
add esp, 4
test al, al
je 0x425081
cmp dword [ebp - 0x630], 5
ja 0x424faf
jne 0x425081
mov eax, 1
mov dword [0x478d18], eax
jmp 0x425086
mov eax, dword [0x479e54]
test eax, eax
je 0x424f2f
lea ecx, [ebp - 0x628]
push ecx
push 0
push 0
push ebx
push 0
call eax
test eax, eax
jne 0x424f2f
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424ff0
lea eax, [ebp - 0x628]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00404040
mov edx, dword [edi]
mov ebx, dword [edx - 0xc]
test ebx, ebx
jle 0x424ad4
lea eax, [ebx - 1]
test eax, eax
js 0x425250
cmp eax, ebx
jg 0x425250
cmp word [edx + eax*2], 0x5c
je 0x424ad4
mov eax, dword [edx - 8]
lea esi, [ebx + 1]
mov ecx, 1
sub eax, esi
sub ecx, dword [edx - 4]
or ecx, eax
jge 0x425057
push esi
mov ecx, edi
call fcn.00403ef0
mov edx, dword [edi]
mov eax, 0x5c
mov word [edx + ebx*2], ax
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x425250
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + esi*2], cx
mov al, byte [ebp - 0x629]
jmp 0x424883
mov eax, dword [0x478d18]
cmp eax, 1
sete al
test al, al
jne 0x424e48
mov eax, dword [edi]
mov ecx, str.ProgramFilesFolder
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4250c6
test dx, dx
je 0x4250c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4250c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4250a0
xor eax, eax
jmp 0x4250cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x425119
mov edx, str.ProgramFiles
mov ecx, edi
call fcn.00425260
test al, al
jne 0x425119
mov eax, dword [edi]
mov ecx, str.AppDataFolder
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42510c
test dx, dx
je 0x425108
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42510c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4250e6
xor eax, eax
jmp 0x425111
sbb eax, eax
or eax, 1
test eax, eax
jne 0x424e48
mov eax, dword [edi]
mov ecx, str.AppDataFolder
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x425146
test dx, dx
je 0x425142
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x425146
add eax, 4
add ecx, 4
test dx, dx
jne 0x425120
xor ecx, ecx
jmp 0x42514b
sbb ecx, ecx
or ecx, 1
xor eax, eax
mov edx, str.PROGRAMFILES
mov word [ebp - 0x420], ax
test ecx, ecx
push 0x104
lea eax, [ebp - 0x420]
push eax
mov eax, str.APPDATA
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x42518a
mov eax, 0x5c
mov word [ebp + esi*2 - 0x420], ax
inc esi
lea eax, [esi + esi]
cmp eax, 0x208
jae 0x42525a
xor ecx, ecx
mov word [ebp + eax - 0x420], cx
cmp word [ebp - 0x420], cx
je 0x4251d2
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4251b4
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00404040
test esi, esi
setne al
jmp 0x424883
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x638]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov esi, eax
mov dword [ebp - 0x634], 0
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ecx, dword [ebp - 0x634]
push dword [ebp - 0x638]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
test esi, esi
je 0x424e48
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425230
lea eax, [ebp - 0x218]
jmp 0x425001
push 0x80004005
call fcn.00404020
push 0x80070057
call fcn.00404020
call fcn.00438a26
int3