Function at 0x4074b0
Capabilities:
Get common file path
Get hostname
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x439bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x449f18]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x449f18]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24c]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0x18]
push 0x43d1c4
push ecx
mov dword [esp + 0x250], ebx
call fcn.00402b40
push 0x43d1c4
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x25c], 1
call fcn.00402a60
add esp, 0x18
push eax
lea ecx, [esp + 0x254]
mov byte [esp + 0x248], 2
call fcn.004017c0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x244], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40756f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x244], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407596
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x250]
push str._ProductName_
push ecx
mov dword [esp + 0x20], 0x10
call fcn.00423ae2
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
je 0x407660
add edi, 0x8a8
push edi
lea ecx, [esp + 0x14]
call fcn.00402dd0
lea ecx, [esp + 0x10]
mov byte [esp + 0x244], 3
call fcn.004020c0
mov eax, dword [esp + 0x10]
mov edx, edi
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4075f0
push edi
mov ecx, esi
call fcn.00402dd0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0x244], bl
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407629
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x250]
add eax, 0xfffffff0
mov dword [esp + 0x244], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ba3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x407ba3
mov ecx, dword [esp + 0x250]
push str._ProductVersion_
push ecx
call fcn.00423ae2
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
je 0x4076b6
add edi, 0x9ac
push edi
lea ecx, [esp + 0x14]
call fcn.00402dd0
lea ecx, [esp + 0x10]
mov byte [esp + 0x244], 4
call fcn.004020c0
mov eax, dword [esp + 0x10]
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4076a7
jmp 0x4075fa
mov ecx, dword [esp + 0x250]
push str._CompanyName_
push ecx
call fcn.00423ae2
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
je 0x40770f
add edi, 0xab0
push edi
lea ecx, [esp + 0x14]
call fcn.00402dd0
lea ecx, [esp + 0x10]
mov byte [esp + 0x244], 5
call fcn.004020c0
mov eax, dword [esp + 0x10]
mov edx, edi
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x407700
jmp 0x4075fa
mov ecx, dword [esp + 0x250]
push str._InstallPath_
push ecx
call fcn.00423ae2
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
je 0x40777d
cmp dword [edi + 0x1020], ebx
jne 0x407741
add edi, 0x101c
push edi
jmp 0x407b90
lea ecx, [esp + 0x10]
call fcn.004012a0
lea edx, [esp + 0x10]
push edx
push 0x3f1
mov ecx, edi
mov byte [esp + 0x24c], 6
call fcn.00418998
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00401f50
lea ecx, [esp + 0x10]
call fcn.004012d0
jmp 0x407b97
lea ecx, [esp + 0x250]
push str._UserName_
push ecx
call fcn.00401a40
add esp, 8
test al, al
je 0x4077c3
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x28], bl
mov dword [esp + 0x24], 0x10
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00402dd0
jmp 0x407b97
lea edx, [esp + 0x250]
push str._ComputerName_
push edx
call fcn.00401a40
add esp, 8
test al, al
je 0x4077fd
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00402dd0
jmp 0x407b97
lea eax, [esp + 0x250]
push str._Language_
push eax
call fcn.00401a40
add esp, 8
test al, al
je 0x407854
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push 0x104
lea ecx, [esp + 0x138]
movzx edx, ax
push ecx
push edx
call sub.KERNEL32.dll_VerLanguageNameA
cmp eax, 0x104
ja 0x407b04
lea eax, [esp + 0x134]
push eax
mov ecx, esi
call fcn.00402dd0
jmp 0x407b97
lea ecx, [esp + 0x250]
push str._ProgramFiles_
push ecx
call fcn.00401a40
add esp, 8
test al, al
je 0x407895
push 0x104
lea edx, [esp + 0x138]
push edx
mov ecx, edi
call fcn.00403e70
lea eax, [esp + 0x134]
push eax
mov ecx, esi
call fcn.00402dd0
jmp 0x407b97
lea ecx, [esp + 0x250]
push str._WindowDir_
push ecx
call fcn.00401a40
add esp, 8
test al, al
je 0x4078d5
push 0x104
lea edx, [esp + 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x134]
push eax
mov ecx, esi
call fcn.00402dd0
jmp 0x407b97
lea ecx, [esp + 0x250]
push str._SystemDir_
push ecx
call fcn.00401a40
add esp, 8
test al, al
je 0x407915
push 0x105
lea edx, [esp + 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x134]
push eax
mov ecx, esi
call fcn.00402dd0
jmp 0x407b97
lea ecx, [esp + 0x250]
push str._CommonFiles_
push ecx
call fcn.00401a40
add esp, 8
test al, al
je 0x407991
push 0x104
lea edx, [esp + 0x138]
push edx
mov ecx, edi
call fcn.00403e70
lea eax, [esp + 0x134]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x407950
mov ecx, dword [str.Common_Files]
mov edx, dword [0x43d8f8]
mov dword [eax], ecx
mov ecx, dword [0x43d8fc]
mov dword [eax + 4], edx
mov dx, word [0x43d900]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x134]
push eax
mov ecx, esi
call fcn.00402dd0
jmp 0x407b97
lea ecx, [esp + 0x250]
push str._TempDir_
push ecx
call fcn.00401a40
add esp, 8
test al, al
je 0x4079d1
lea edx, [esp + 0x134]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x134]
push eax
mov ecx, esi
call fcn.00402dd0
jmp 0x407b97
lea ecx, [esp + 0x250]
push str._Desktop_
push ecx
call fcn.00401a40
add esp, 8
test al, al
je 0x407a0e
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push 0x8010
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.00402dd0
jmp 0x407b97
lea ecx, [esp + 0x250]
push str._ProgramDir_
push ecx
call fcn.00401a40
add esp, 8
test al, al
je 0x407a35
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push 0x8002
jmp 0x4079f6
lea ecx, [esp + 0x250]
push str._StartMenu_
push ecx
call fcn.00401a40
add esp, 8
test al, al
je 0x407a5c
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push 0x800b
jmp 0x4079f6
lea ecx, [esp + 0x250]
push str._Favorites_
push ecx
call fcn.00401a40
add esp, 8
test al, al
je 0x407a86
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push 0x8006
jmp 0x4079f6
lea ecx, [esp + 0x250]
push str._Startup_
push ecx
call fcn.00401a40
add esp, 8
test al, al
je 0x407ab0
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push 0x8007
jmp 0x4079f6
lea ecx, [esp + 0x250]
push str._Templates_
push ecx
call fcn.00401a40
add esp, 8
test al, al
je 0x407ada
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push 0x8015
jmp 0x4079f6
lea ecx, [esp + 0x250]
push str._AppData_
push ecx
call fcn.00401a40
add esp, 8
test al, al
je 0x407b04
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push 0x801a
jmp 0x4079f6
mov ecx, dword [esp + 0x250]
mov eax, dword [ecx - 0xc]
dec eax
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x258]
call fcn.00401f70
push eax
lea ecx, [esp + 0x254]
mov byte [esp + 0x248], 7
call fcn.004017c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], bl
call fcn.004012d0
mov eax, dword [esp + 0x250]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x258]
call fcn.00401ff0
push eax
lea ecx, [esp + 0x254]
mov byte [esp + 0x248], 8
call fcn.004017c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], bl
call fcn.004012d0
lea edx, [esp + 0x250]
push edx
mov ecx, esi
call fcn.00401f50
lea ecx, [esp + 0x250]
call fcn.004012d0
mov eax, esi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00423763
add esp, 0x238
ret 8