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

Disassembly:
push ebp
sub esp, 0x258
lea ebp, [esp - 4]
mov eax, dword [0x5e4ce0]
xor eax, ebp
mov dword [ebp + 0x258], eax
push 0x20
mov eax, 0x4fe04c
call fcn.004df3ad
mov esi, ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x2c], esi
call fcn.004037c8
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
call fcn.004037c8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004037c8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004037c8
mov byte [ebp - 4], 3
cmp esi, ebx
jne 0x439e06
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004010f8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004010f8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004010f8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004010f8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x258]
xor ecx, ebp
call fcn.004d99c4
add ebp, 0x25c
leave
ret
push esi
lea ecx, [ebp - 0x14]
call fcn.004038a3
push str._windows_
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
call fcn.004013dd
push dword [ebp - 0x10]
lea esi, [ebp - 0x14]
call fcn.0040ad0f
cmp eax, 0xffffffff
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
je 0x439e5d
push ebx
push 0x24
lea eax, [ebp]
push eax
push ebx
call edi
xor esi, esi
inc esi
cmp eax, esi
jne 0x439db2
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0040aba8
mov dword [ebp - 0x1c], esi
push str._programfiles_
lea ecx, [ebp - 0x10]
call fcn.004013dd
push dword [ebp - 0x10]
lea esi, [ebp - 0x14]
call fcn.0040ad0f
cmp eax, 0xffffffff
je 0x439f05
push ebx
push 0x26
lea eax, [ebp]
push eax
push ebx
call edi
xor esi, esi
inc esi
cmp eax, esi
jne 0x439e95
lea eax, [ebp]
push eax
jmp 0x439ef6
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ProgramFilesDir
call fcn.004014b0
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.SoftwareMicrosoftWindowsCurrentVersion
call fcn.004014b0
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.hklm
call fcn.004014b0
mov byte [ebp - 4], 6
mov byte [ebp - 4], 3
call fcn.0043a387
push 0x5af400
lea ecx, [ebp - 0x18]
call fcn.004036be
test eax, eax
je 0x439db2
push dword [ebp - 0x18]
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0040aba8
mov dword [ebp - 0x1c], esi
push str._appdata_
lea ecx, [ebp - 0x10]
call fcn.004013dd
push dword [ebp - 0x10]
lea esi, [ebp - 0x14]
call fcn.0040ad0f
cmp eax, 0xffffffff
je 0x439fad
push ebx
push 0x1a
lea eax, [ebp]
push eax
push ebx
call edi
xor esi, esi
inc esi
cmp eax, esi
jne 0x439f3d
lea eax, [ebp]
push eax
jmp 0x439f9e
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.AppData
call fcn.004014b0
mov byte [ebp - 4], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.004014b0
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.hkcu
call fcn.004014b0
mov byte [ebp - 4], 9
mov byte [ebp - 4], 3
call fcn.0043a387
push 0x5af400
lea ecx, [ebp - 0x18]
call fcn.004036be
test eax, eax
je 0x439db2
push dword [ebp - 0x18]
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0040aba8
mov dword [ebp - 0x1c], esi
push str._system_
lea ecx, [ebp - 0x10]
call fcn.004013dd
push dword [ebp - 0x10]
lea esi, [ebp - 0x14]
call fcn.0040ad0f
cmp eax, 0xffffffff
je 0x439ff2
push ebx
push 0x25
lea eax, [ebp]
push eax
push ebx
call edi
xor esi, esi
inc esi
cmp eax, esi
jne 0x439db2
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0040aba8
mov dword [ebp - 0x1c], esi
push str._temp_
lea ecx, [ebp - 0x10]
call fcn.004013dd
push dword [ebp - 0x10]
lea esi, [ebp - 0x14]
call fcn.0040ad0f
cmp eax, 0xffffffff
je 0x43a0c6
lea eax, [ebp]
push eax
mov esi, 0x258
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x43a08e
push esi
lea eax, [ebp]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.004013dd
push 0x5c
push dword [ebp - 0x18]
call fcn.004e1446
cmp eax, ebx
pop ecx
pop ecx
jne 0x43a054
or eax, 0xffffffff
jmp 0x43a057
sub eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f236
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x18]
call fcn.004038a3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.004010f8
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push eax
call fcn.0040aba8
jmp 0x43a0cb
xor esi, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004010f8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004010f8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004010f8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004010f8
mov eax, esi
jmp 0x439de3
cmp dword [ebp - 0x1c], ebx
je 0x43a08e
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
call fcn.004038a3
xor esi, esi
inc esi
jmp 0x43a090