Function at 0x46f030
Capabilities:
Get common file path
Get hostname
Get session user name
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x52e707
mov eax, dword fs:[0]
push eax
mov eax, 0x14cc
mov dword fs:[0], esp
call fcn.004bd0a0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], 0x400
call dword [sym.imp.KERNEL32.DLL_GetSystemDefaultLangID]
movzx esi, ax
push 0xa
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004bd30d
add esp, 8
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.System_LanguageID
mov dword [esp + 0x14f0], 0
call fcn.0040e1f0
or ebp, 0xffffffff
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
push 0x400
lea eax, [esp + 0x34]
push eax
push esi
call sub.KERNEL32.DLL_VerLanguageNameA
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.System_Language
mov dword [esp + 0x14f0], 1
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
push str.Netapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x46f1b7
push str.NetWkstaGetInfo
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.NetApiBufferFree
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x46f1b0
test eax, eax
je 0x46f1b0
lea eax, [esp + 0x18]
push eax
push 0x64
push 0x538214
mov dword [esp + 0x24], 0
call ebx
mov ebx, eax
test ebx, ebx
jne 0x46f193
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 8]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0040e1f0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.System_Domain
mov dword [esp + 0x14f0], 2
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e2a0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46f1a0
push eax
call dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
test ebx, ebx
jne 0x46f1b7
jmp 0x46f2e7
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x18]
push ecx
push 1
push 0
push str.SYSTEMCurrentControlSetServicesMSNP32NetworkProvider
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x46f21b
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x4e0]
push eax
push 0
push 0
push str.AuthenticatingAgent
push ecx
mov dword [esp + 0x34], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x18]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46f21b
mov al, byte [esp + 0x4dc]
test al, al
jne 0x46f26c
lea eax, [esp + 0x18]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesVxDVNETSUP
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x46f2ac
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x4e0]
push edx
push eax
push eax
mov eax, dword [esp + 0x28]
push str.Workgroup
push eax
mov dword [esp + 0x34], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46f2ac
push ecx
lea edx, [esp + 0x4e0]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.System_Domain
mov dword [esp + 0x14f0], 3
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
jmp 0x46f2e7
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x542148
call fcn.0040e1f0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.System_Domain
mov dword [esp + 0x14f0], 4
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e2a0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.System_Name
mov dword [esp + 0x14f0], 5
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.System_User
mov dword [esp + 0x14f0], 6
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
push 0x400
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Folder_Windows
mov dword [esp + 0x14f0], 7
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
push 0x400
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Folder_System
mov dword [esp + 0x14f0], 8
call fcn.0040e1f0
mov dword [esp + 0x14ec], ebp
mov ecx, edi
call fcn.0046e350
push str.SHFolder.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x46f66f
push str.SHGetFolderPathA
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
test esi, esi
je 0x46f668
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 0
call esi
test eax, eax
jl 0x46f494
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Folder_Desktop
mov dword [esp + 0x14f0], 9
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 6
push 0
call esi
test eax, eax
jl 0x46f4e2
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Folder_Favorites
mov dword [esp + 0x14f0], 0xa
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0x26
push 0
call esi
test eax, eax
jl 0x46f530
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Folder_ProgramFiles
mov dword [esp + 0x14f0], 0xb
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0x2b
push 0
call esi
test eax, eax
jl 0x46f57e
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Folder_ProgramFilesCommon
mov dword [esp + 0x14f0], 0xc
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 2
push 0
call esi
test eax, eax
jl 0x46f5cc
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Folder_Programs
mov dword [esp + 0x14f0], 0xd
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0xb
push 0
call esi
test eax, eax
jl 0x46f61a
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Folder_StartMenu
mov dword [esp + 0x14f0], 0xe
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 5
push 0
call esi
test eax, eax
jl 0x46f668
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Folder_MyDocuments
mov dword [esp + 0x14f0], 0xf
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [esp + 0x430]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTimeZoneInformation]
push ecx
lea edx, [esp + 0x438]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0040e1f0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.TimeZone_Name
mov dword [esp + 0x14f0], 0x10
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e2a0
mov ecx, dword [esp + 0x430]
push 0xa
lea eax, [esp + 0x34]
push eax
mov eax, 0x77777777
imul ecx
sub edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
call fcn.004bd2e3
add esp, 8
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.TimeZone
mov dword [esp + 0x14f0], 0x11
call fcn.0040e1f0
mov ecx, edi
mov dword [esp + 0x14ec], ebp
call fcn.0046e350
xor ebx, ebx
push ebx
lea eax, [esp + 0x24]
push eax
push ebx
mov dword [esp + 0x2c], ebx
call sub.iphlpapi.dll_GetIpAddrTable
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46f8c5
push eax
call fcn.0051fe94
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x14], ebp
je 0x46f8c5
push 1
lea ecx, [esp + 0x24]
push ecx
push ebp
call sub.iphlpapi.dll_GetIpAddrTable
test eax, eax
jne 0x46f8bc
mov edx, dword [0x58ada8]
mov ecx, 0x58ada8
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [0x58ada8]
mov ecx, 0x58ada8
mov dword [esp + 0x14e4], 0x12
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp dword [ebp], 0
mov byte [esp + 0x14e4], 0x13
mov dword [esp + 0x10], ebx
jbe 0x46f86d
lea esi, [ebp + 4]
mov eax, dword [esi]
test eax, eax
je 0x46f856
cmp eax, 0x100007f
je 0x46f856
movzx ecx, byte [esi + 3]
movzx edx, byte [esi + 2]
movzx eax, byte [esi + 1]
push ecx
mov ecx, dword [esi]
push edx
push eax
and ecx, 0xff
push ecx
lea edx, [esp + 0x28]
push 0x537f88
push edx
call fcn.004297d0
push ebx
lea eax, [esp + 0x38]
push str.IP__d
push eax
call fcn.004297d0
mov eax, dword [esp + 0x3c]
add esp, 0x20
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov ebp, esp
push eax
inc ebx
call fcn.00404780
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov ebp, esp
push eax
mov byte [esp + 0x14f0], 0x14
call fcn.00404780
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [ebp], eax
mov byte [esp + 0x14ec], 0x13
call fcn.0046e2a0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp]
inc eax
add esi, 0x18
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x46f7b6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x14e4], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f893
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x14e4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f8bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebp
call fcn.0051fe99
add esp, 4
mov ecx, dword [esp + 0x14dc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14d8
ret