Function at 0x4022c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaf4
mov eax, dword [0x4ad2d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov byte [ebp - 0xa70], 0
push 0x30b
push 0
lea eax, [ebp - 0xa6f]
push eax
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x448], 0
push 0x103
push 0
lea ecx, [ebp - 0x447]
push ecx
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x220], 0
push 0x103
push 0
lea edx, [ebp - 0x21f]
push edx
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x22f], eax
mov dword [ebp - 0x22b], eax
mov byte [ebp - 0x227], al
mov byte [ebp - 0x658], 0
push 0x103
push 0
lea ecx, [ebp - 0x657]
push ecx
call fcn.00499430
add esp, 0xc
mov dword [ebp - 0xa74], 0
mov dword [ebp - 0x114], 0x207
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0xa70]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov byte [ebp - 0x760], 0
push 0x103
push 0
lea ecx, [ebp - 0x75f]
push ecx
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x550], 0
push 0x103
push 0
lea edx, [ebp - 0x54f]
push edx
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x340], 0
push 0x103
push 0
lea ecx, [ebp - 0x33f]
push ecx
call fcn.00499430
add esp, 0xc
push str.CCS_SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.0048a5f0
add esp, 4
push eax
lea edx, [ebp - 0x760]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.CCS_RegisteredOwner
call fcn.0048a5f0
add esp, 4
push eax
lea eax, [ebp - 0x550]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.CCS_RegisteredOrganization
call fcn.0048a5f0
add esp, 4
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.CCS_InstallDate
call fcn.0048a5f0
add esp, 4
push eax
lea edx, [ebp - 0x340]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x224]
push eax
push 1
push 0
lea ecx, [ebp - 0x760]
push ecx
push 0x80000002
call dword [0x4bcc70]
test eax, eax
jne 0x402776
mov dword [ebp - 0x234], 1
mov dword [ebp - 0x114], 0x103
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x234]
push ecx
push 0
lea edx, [ebp - 0x550]
push edx
mov eax, dword [ebp - 0x224]
push eax
call dword [0x4bcc24]
test eax, eax
jne 0x40257a
lea ecx, [ebp - 0x448]
mov dword [ebp - 0xa78], ecx
mov edx, dword [ebp - 0xa78]
mov dword [ebp - 0xa7c], edx
mov eax, dword [ebp - 0xa78]
mov cl, byte [eax]
mov byte [ebp - 0xa7d], cl
add dword [ebp - 0xa78], 1
cmp byte [ebp - 0xa7d], 0
jne 0x4024f0
mov edx, dword [ebp - 0xa78]
sub edx, dword [ebp - 0xa7c]
mov eax, dword [ebp - 0xa7c]
mov dword [ebp - 0xa84], eax
mov dword [ebp - 0xa88], edx
lea ecx, [ebp - 0xa70]
add ecx, 0xffffffff
mov dword [ebp - 0xa8c], ecx
mov edx, dword [ebp - 0xa8c]
mov al, byte [edx + 1]
mov byte [ebp - 0xa8d], al
add dword [ebp - 0xa8c], 1
cmp byte [ebp - 0xa8d], 0
jne 0x40253b
mov edi, dword [ebp - 0xa8c]
mov esi, dword [ebp - 0xa84]
mov edx, dword [ebp - 0xa88]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x234], 1
mov dword [ebp - 0x114], 0x103
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x234]
push edx
push 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [0x4bcc24]
test eax, eax
jne 0x402663
lea edx, [ebp - 0x220]
mov dword [ebp - 0xa94], edx
mov eax, dword [ebp - 0xa94]
mov dword [ebp - 0xa98], eax
mov ecx, dword [ebp - 0xa94]
mov dl, byte [ecx]
mov byte [ebp - 0xa99], dl
add dword [ebp - 0xa94], 1
cmp byte [ebp - 0xa99], 0
jne 0x4025d9
mov eax, dword [ebp - 0xa94]
sub eax, dword [ebp - 0xa98]
mov ecx, dword [ebp - 0xa98]
mov dword [ebp - 0xaa0], ecx
mov dword [ebp - 0xaa4], eax
lea edx, [ebp - 0xa70]
add edx, 0xffffffff
mov dword [ebp - 0xaa8], edx
mov eax, dword [ebp - 0xaa8]
mov cl, byte [eax + 1]
mov byte [ebp - 0xaa9], cl
add dword [ebp - 0xaa8], 1
cmp byte [ebp - 0xaa9], 0
jne 0x402624
mov edi, dword [ebp - 0xaa8]
mov esi, dword [ebp - 0xaa0]
mov edx, dword [ebp - 0xaa4]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x234], 4
mov dword [ebp - 0x114], 4
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x234]
push edx
push 0
lea eax, [ebp - 0x340]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [0x4bcc24]
test eax, eax
jne 0x402769
mov edx, dword [ebp - 0x238]
push edx
push str._08x
push 9
lea eax, [ebp - 0x230]
push eax
call fcn.004919a0
add esp, 0x10
lea ecx, [ebp - 0x230]
mov dword [ebp - 0xab0], ecx
mov edx, dword [ebp - 0xab0]
mov dword [ebp - 0xab4], edx
mov eax, dword [ebp - 0xab0]
mov cl, byte [eax]
mov byte [ebp - 0xab5], cl
add dword [ebp - 0xab0], 1
cmp byte [ebp - 0xab5], 0
jne 0x4026df
mov edx, dword [ebp - 0xab0]
sub edx, dword [ebp - 0xab4]
mov eax, dword [ebp - 0xab4]
mov dword [ebp - 0xabc], eax
mov dword [ebp - 0xac0], edx
lea ecx, [ebp - 0xa70]
add ecx, 0xffffffff
mov dword [ebp - 0xac4], ecx
mov edx, dword [ebp - 0xac4]
mov al, byte [edx + 1]
mov byte [ebp - 0xac5], al
add dword [ebp - 0xac4], 1
cmp byte [ebp - 0xac5], 0
jne 0x40272a
mov edi, dword [ebp - 0xac4]
mov esi, dword [ebp - 0xabc]
mov edx, dword [ebp - 0xac0]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x224]
push eax
call dword [0x4bcbbc]
lea ecx, [ebp - 0x658]
push ecx
call fcn.004021c0
add esp, 4
lea edx, [ebp - 0x658]
mov dword [ebp - 0xacc], edx
mov eax, dword [ebp - 0xacc]
mov dword [ebp - 0xad0], eax
mov ecx, dword [ebp - 0xacc]
mov dl, byte [ecx]
mov byte [ebp - 0xad1], dl
add dword [ebp - 0xacc], 1
cmp byte [ebp - 0xad1], 0
jne 0x40279d
mov eax, dword [ebp - 0xacc]
sub eax, dword [ebp - 0xad0]
mov ecx, dword [ebp - 0xad0]
mov dword [ebp - 0xad8], ecx
mov dword [ebp - 0xadc], eax
lea edx, [ebp - 0xa70]
add edx, 0xffffffff
mov dword [ebp - 0xae0], edx
mov eax, dword [ebp - 0xae0]
mov cl, byte [eax + 1]
mov byte [ebp - 0xae1], cl
add dword [ebp - 0xae0], 1
cmp byte [ebp - 0xae1], 0
jne 0x4027e8
mov edi, dword [ebp - 0xae0]
mov esi, dword [ebp - 0xad8]
mov edx, dword [ebp - 0xadc]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0xa70]
mov dword [ebp - 0xae8], eax
mov ecx, dword [ebp - 0xae8]
add ecx, 1
mov dword [ebp - 0xaec], ecx
mov edx, dword [ebp - 0xae8]
mov al, byte [edx]
mov byte [ebp - 0xaed], al
add dword [ebp - 0xae8], 1
cmp byte [ebp - 0xaed], 0
jne 0x402842
mov ecx, dword [ebp - 0xae8]
sub ecx, dword [ebp - 0xaec]
mov dword [ebp - 0xaf4], ecx
push 0x616e6f6e
push 4
lea edx, [ebp - 0xa74]
push edx
mov eax, dword [ebp - 0xaf4]
push eax
lea ecx, [ebp - 0xa70]
push ecx
call fcn.00401710
add esp, 0x14
mov edx, dword [ebp - 0xa74]
push edx
push str._08X
push 9
mov eax, dword [ebp + 8]
push eax
call fcn.004919a0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491914
mov esp, ebp
pop ebp
ret