Function at 0x40472c
Capabilities:
Get common file path
Get disk information
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebx + 0x57bc]
push edi
mov edi, 0x80
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x404758
push eax
call fcn.00404f79
jmp 0x40475a
xor al, al
test al, al
je 0x404a0e
mov eax, dword [0x4214a8]
or eax, dword [0x4214ac]
jne 0x404a00
mov ecx, 0x100
lea eax, [ebp - 0x264]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40477e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x264]
push eax
push 6
call sub.Secur32.dll_GetComputerObjectNameW
test al, al
jne 0x4049e8
mov esi, 0x104
push esi
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov word [ebp - 0x66e], ax
push esi
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x40480b
push 0x4c
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 0x1c], 0x26
call fcn.0040a9c0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
xor eax, eax
mov word [ebp + ecx*2 - 0x46c], ax
lea eax, [ebp - 0x46c]
jmp 0x4049ee
xor ecx, ecx
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov dword [ebp - 0x24], edi
cmp ecx, eax
je 0x404831
lea ecx, [ebp - 0x264]
push ecx
push eax
lea esi, [ebp - 0x24]
call fcn.004058d1
test al, al
jne 0x4049e8
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
push 8
pop ecx
push 0xffffffffffffffff
xor eax, eax
push ebx
lea edi, [ebp - 0x164]
lea ebx, [ebp - 0x164]
rep stosd dword es:[edi], eax
call fcn.004031c9
push 8
movzx eax, ax
xor dword [ebp - 0x14], eax
pop ecx
push 0xffff
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x124]
lea ebx, [ebp - 0x124]
rep stosd dword es:[edi], eax
call fcn.004031c9
mov ecx, dword [ebp - 0x14]
or ecx, eax
xor word [ebp - 0x10], cx
push 8
pop ecx
mov eax, 0x1234
xor word [ebp - 0xe], ax
mov esi, 0xff
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xa4]
lea ebx, [ebp - 0xa4]
rep stosd dword es:[edi], eax
call fcn.004031c9
xor byte [ebp - 0xc], al
push 8
pop ecx
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x44]
lea ebx, [ebp - 0x44]
rep stosd dword es:[edi], eax
call fcn.004031c9
push 8
pop ecx
add al, 0x64
xor byte [ebp - 0xb], al
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xe4]
lea ebx, [ebp - 0xe4]
rep stosd dword es:[edi], eax
call fcn.004031c9
push 8
pop ecx
sub al, 0x11
xor byte [ebp - 0xa], al
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x144]
lea ebx, [ebp - 0x144]
rep stosd dword es:[edi], eax
call fcn.004031c9
mov cl, 0x22
imul cl
xor byte [ebp - 9], al
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
push esi
push dword [ebp + 8]
rep stosd dword es:[edi], eax
lea ebx, [ebp - 0x64]
call fcn.004031c9
push 8
pop ecx
add al, 0x1d
xor byte [ebp - 8], al
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x84]
lea ebx, [ebp - 0x84]
rep stosd dword es:[edi], eax
call fcn.004031c9
push 8
pop ecx
sub al, 0x61
xor byte [ebp - 7], al
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xc4]
lea ebx, [ebp - 0xc4]
rep stosd dword es:[edi], eax
call fcn.004031c9
mov cl, 0x15
imul cl
xor byte [ebp - 6], al
push 8
pop ecx
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x104]
lea ebx, [ebp - 0x104]
rep stosd dword es:[edi], eax
call fcn.004031c9
add al, 0xb
xor byte [ebp - 5], al
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jne 0x4049e8
push dword [ebp - 0x18]
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
mov ecx, str.SoftwareMicrosoftWindows_NTCurrentVersion
add eax, eax
cmp edx, ecx
je 0x4049df
push eax
push dword [ebp - 0x18]
push 3
push str.SerialIID
push ecx
push 0x80000001
call fcn.00405983
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x264]
push eax
call fcn.004046e5
pop ecx
mov dword [0x4214a8], eax
mov dword [0x4214ac], edx
cmp dword [ebp - 0x20], 0
je 0x404a0e
push dword [ebp - 0x20]
call fcn.00404f99
mov eax, dword [0x4214a8]
mov edx, dword [0x4214ac]
pop edi
pop esi
pop ebx
leave
ret 4