Function at 0x427c90
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4121
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xdc0
mov eax, dword [0x4c4024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0xdcc], ecx
mov dword [ebp - 0xdc4], ecx
mov dword [ebp - 0xdc4], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0xd90], xmm0
mov dword [ebp - 0xd80], 0
mov dword [ebp - 0xd7c], 0xf
mov byte [ebp - 0xd90], 0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0xdc0], xmm0
mov dword [ebp - 0xdb0], 0
mov dword [ebp - 0xdac], 0xf
mov byte [ebp - 0xdc0], 0
push 0x104
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0047c720
add esp, 0xc
lea eax, [ebp - 0x330]
push 0x104
push 0
push eax
call fcn.0047c720
add esp, 0xc
lea eax, [ebp - 0x540]
push 0x104
push 0
push eax
call fcn.0047c720
add esp, 0xc
lea eax, [ebp - 0x648]
push 0x104
push 0
push eax
call fcn.0047c720
add esp, 0xc
lea eax, [ebp - 0xa60]
push 0x208
push 0
push eax
call fcn.0047c720
add esp, 0xc
lea eax, [ebp - 0x750]
push 0x104
push 0
push eax
call fcn.0047c720
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x438]
add esp, 0xc
push 0x104
push eax
call esi
push 0x104
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea eax, [ebp - 0x858]
push 0
push eax
call fcn.0047c720
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push 0
push eax
call fcn.0047c720
add esp, 0xc
lea eax, [ebp - 0xd78]
push 0x104
push 0
push eax
call fcn.0047c720
add esp, 0xc
lea eax, [ebp - 0xc70]
push 0x104
push 0
push eax
call fcn.0047c720
add esp, 0xc
lea eax, [ebp - 0xb68]
push 0x104
push 0
push eax
call fcn.0047c720
add esp, 0xc
lea eax, [ebp - 0x120]
push 0x104
push 0
push eax
call fcn.0047c720
add esp, 0xc
lea eax, [ebp - 0xdc8]
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0xdc8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0xdc4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0xdc4]
push dword [ebp - 0xdc8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0xdc4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x120]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427ec0
sub ecx, edx
jne 0x427f93
push 0x104
lea eax, [ebp - 0x858]
push eax
call esi
lea eax, [ebp - 0xb68]
push eax
lea eax, [ebp - 0xc70]
push eax
lea eax, [ebp - 0xd78]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x858]
push eax
call fcn.00485650
add esp, 0x14
lea eax, [ebp - 0x120]
push 0x104
push 0
push eax
call fcn.0047c720
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x4bd27c
push eax
lea eax, [ebp - 0x120]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor ecx, ecx
mov al, byte [ebp + ecx - 0x228]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x121], al
test al, al
jne 0x427f41
lea ecx, [ebp - 0x120]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x427f60
mov eax, dword [str.Program_Files]
mov dword [ecx], eax
mov eax, dword [0x4bd298]
mov dword [ecx + 4], eax
mov eax, dword [0x4bd29c]
mov dword [ecx + 8], eax
mov ax, word [0x4bd2a0]
mov word [ecx + 0xc], ax
mov al, byte [0x4bd2a2]
mov byte [ecx + 0xe], al
xor ecx, ecx
mov al, byte [ebp + ecx - 0x120]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x541], al
test al, al
jne 0x427f95
lea eax, [ebp - 0x648]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0xa60]
push 0x208
push eax
push 0
call esi
test eax, eax
je 0x427fee
lea eax, [ebp - 0xa60]
push 0x5c
push eax
call fcn.004812b4
add esp, 8
test eax, eax
je 0x427fee
mov byte [eax], 0
push 0x104
lea eax, [ebp - 0x750]
push eax
push 0
call esi
push edi
lea ecx, [ebp - 0xda8]
call fcn.0041ea60
mov esi, eax
lea eax, [ebp - 0xd90]
cmp eax, esi
je 0x428093
mov ecx, dword [ebp - 0xd7c]
cmp ecx, 0x10
jb 0x428050
mov edx, dword [ebp - 0xd90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x428046
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428ae2
push ecx
push edx
call fcn.0042cca6
add esp, 8
mov dword [ebp - 0xd80], 0
mov dword [ebp - 0xd7c], 0xf
mov byte [ebp - 0xd90], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0xd90], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0xd80], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0xd94]
cmp ecx, 0x10
jb 0x4280cd
mov edx, dword [ebp - 0xda8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4280c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428ae2
push ecx
push edx
call fcn.0042cca6
add esp, 8
mov esi, dword [ebp - 0xd80]
test esi, esi
jne 0x428140
mov esi, dword [ebp - 0xdcc]
xorps xmm0, xmm0
push 0
push 0x4bcbaf
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0041ecc0
mov ecx, dword [ebp - 0xd7c]
cmp ecx, 0x10
jb 0x428139
mov edx, dword [ebp - 0xd90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42812f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428ae7
push ecx
push edx
call fcn.0042cca6
add esp, 8
mov eax, esi
jmp 0x428ac4
cmp dword [ebp - 0xd7c], 0x10
lea ecx, [ebp - 0xd90]
cmovae ecx, dword [ebp - 0xd90]
mov dword [ebp - 0xdc8], ecx
cmp esi, 8
jb 0x428235
lea eax, [esi - 7]
add eax, ecx
mov dword [ebp - 0xdc4], eax
sub eax, ecx
push eax
push 0x25
push ecx
call fcn.0047ce40
mov edi, eax
add esp, 0xc
test edi, edi
je 0x428235
nop word [eax + eax]
mov ecx, edi
mov edx, str._SYS_DIR
mov esi, 4
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4281b5
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4281a0
xor eax, eax
jmp 0x4281dc
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4281d7
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4281d7
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4281d7
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4281d7
xor eax, eax
jmp 0x4281dc
sbb eax, eax
or eax, 1
test eax, eax
je 0x4281fd
mov eax, dword [ebp - 0xdc4]
inc edi
sub eax, edi
push eax
push 0x25
push edi
call fcn.0047ce40
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x428190
jmp 0x42822f
sub edi, dword [ebp - 0xdc8]
js 0x42822f
lea ecx, [ebp - 0x330]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428210
sub ecx, edx
lea eax, [ebp - 0x330]
push ecx
push eax
push 8
push edi
lea ecx, [ebp - 0xd90]
call fcn.00415650
mov esi, dword [ebp - 0xd80]
cmp dword [ebp - 0xd7c], 0x10
lea ecx, [ebp - 0xd90]
cmovae ecx, dword [ebp - 0xd90]
mov dword [ebp - 0xdc8], ecx
cmp esi, 8
jb 0x428325
lea eax, [ecx - 7]
add eax, esi
mov dword [ebp - 0xdc4], eax
sub eax, ecx
push eax
push 0x25
push ecx
call fcn.0047ce40
mov edi, eax
add esp, 0xc
test edi, edi
je 0x428325
nop dword [eax + eax]
mov ecx, edi
mov edx, str._WIN_DIR
mov esi, 4
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4282a5
add ecx, 4
add edx, 4
sub esi, 4
jae 0x428290
xor eax, eax
jmp 0x4282cc
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4282c7
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4282c7
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4282c7
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4282c7
xor eax, eax
jmp 0x4282cc
sbb eax, eax
or eax, 1
test eax, eax
je 0x4282ed
mov eax, dword [ebp - 0xdc4]
inc edi
sub eax, edi
push eax
push 0x25
push edi
call fcn.0047ce40
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x428280
jmp 0x42831f
sub edi, dword [ebp - 0xdc8]
js 0x42831f
lea ecx, [ebp - 0x438]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428300
sub ecx, edx
lea eax, [ebp - 0x438]
push ecx
push eax
push 8
push edi
lea ecx, [ebp - 0xd90]
call fcn.00415650
mov esi, dword [ebp - 0xd80]
cmp dword [ebp - 0xd7c], 0x10
lea ecx, [ebp - 0xd90]
cmovae ecx, dword [ebp - 0xd90]
mov dword [ebp - 0xdc8], ecx
cmp esi, 9
jb 0x428415
lea eax, [ecx - 8]
add eax, esi
mov dword [ebp - 0xdc4], eax
sub eax, ecx
push eax
push 0x25
push ecx
call fcn.0047ce40
mov edi, eax
add esp, 0xc
test edi, edi
je 0x428415
nop dword [eax + eax]
mov ecx, edi
mov edx, str._PROG_DIR
mov esi, 5
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x428391
add ecx, 4
add edx, 4
sub esi, 4
jae 0x428380
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4283b8
cmp esi, 0xfffffffd
je 0x4283b4
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4283b8
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4283b8
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4283b8
xor eax, eax
jmp 0x4283bd
sbb eax, eax
or eax, 1
test eax, eax
je 0x4283de
mov eax, dword [ebp - 0xdc4]
inc edi
sub eax, edi
push eax
push 0x25
push edi
call fcn.0047ce40
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x428370
jmp 0x42840f
sub edi, dword [ebp - 0xdc8]
js 0x42840f
lea ecx, [ebp - 0x540]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4283f0
sub ecx, edx
lea eax, [ebp - 0x540]
push ecx
push eax
push 9
push edi
lea ecx, [ebp - 0xd90]
call fcn.00415650
mov esi, dword [ebp - 0xd80]
cmp dword [ebp - 0xd7c], 0x10
lea ecx, [ebp - 0xd90]
cmovae ecx, dword [ebp - 0xd90]
mov dword [ebp - 0xdc8], ecx
cmp esi, 9
jb 0x4285cf
lea eax, [ecx - 8]
add eax, esi
mov dword [ebp - 0xdc4], eax
sub eax, ecx
push eax
push 0x25
push ecx
call fcn.0047ce40
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4285cf
nop dword [eax + eax]
mov ecx, edi
mov edx, str._TEMP_DIR
mov esi, 5
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x428481
add ecx, 4
add edx, 4
sub esi, 4
jae 0x428470
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4284a8
cmp esi, 0xfffffffd
je 0x4284a4
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4284a8
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4284a8
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4284a8
xor eax, eax
jmp 0x4284ad
sbb eax, eax
or eax, 1
test eax, eax
je 0x4284d1
mov eax, dword [ebp - 0xdc4]
inc edi
sub eax, edi
push eax
push 0x25
push edi
call fcn.0047ce40
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x428460
jmp 0x4285c9
sub edi, dword [ebp - 0xdc8]
js 0x4285c9
lea ecx, [ebp - 0x648]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4284e6
sub ecx, edx
lea eax, [ebp - 0x648]
push ecx
push eax
push 9
push edi
lea ecx, [ebp - 0xd90]
call fcn.00415650
mov esi, dword [ebp - 0xd80]
push ecx
push 0x4ba754
lea ecx, [ebp - 0xd90]
dec esi
call fcn.0042b210
cmp eax, esi
jne 0x4285c9
cmp dword [ebp - 0xd80], esi
lea eax, [ebp - 0xd90]
xorps xmm0, xmm0
mov dword [ebp - 0xd98], 0
cmovb esi, dword [ebp - 0xd80]
lea ecx, [ebp - 0xda8]
cmp dword [ebp - 0xd7c], 0x10
push esi
cmovae eax, dword [ebp - 0xd90]
push eax
invalid
invalid
invalid
pop eax