Function at 0x47fac9
Capabilities:
Get hostname

Disassembly:
push 0x44
mov eax, 0x52046a
call fcn.004d8af2
mov dword [ebp - 0x44], ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0040687a
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.004366f2
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
mov ebx, dword [eax]
shr ebx, 0x1f
call fcn.00407189
xor bl, 1
mov esi, dword [ebp - 0x38]
je 0x47fb7d
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x34], edi
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x34]
mov dword [edi], eax
call fcn.0042a066
mov edi, eax
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
mov dword [esp], str.id
call fcn.00409442
push edi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0040a037
pop ecx
pop ecx
mov ecx, dword [ebp - 0x44]
push eax
mov byte [ebp - 4], 4
call fcn.00405d6e
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [esi - 0x10]
call fcn.00407189
lea ecx, [ebp - 0x38]
call fcn.0040687a
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x50]
call fcn.00436386
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
mov ebx, dword [eax]
shr ebx, 0x1f
call fcn.00407189
xor bl, 1
mov esi, dword [ebp - 0x38]
je 0x47fc26
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x34], edi
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x40]
mov dword [edi], eax
call fcn.0042a066
mov edi, eax
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
mov dword [esp], str.id2
call fcn.00409442
push edi
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x34]
call fcn.0040a037
pop ecx
pop ecx
mov ecx, dword [ebp - 0x44]
push eax
mov byte [ebp - 4], 8
call fcn.00405d6e
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [esi - 0x10]
call fcn.00407189
lea ecx, [ebp - 0x38]
call fcn.0040687a
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
call fcn.00436504
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
mov ebx, dword [eax]
shr ebx, 0x1f
call fcn.00407189
xor bl, 1
mov esi, dword [ebp - 0x38]
je 0x47fcd2
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x34], edi
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x40]
mov dword [edi], eax
call fcn.0042a066
mov edi, eax
mov ebx, dword [ebp - 0x44]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
mov edx, ebx
mov dword [esp], str.id3
call fcn.00409442
push edi
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x34]
call fcn.0040a037
pop ecx
pop ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xc
call fcn.00405d6e
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00407189
jmp 0x47fcd5
mov ebx, dword [ebp - 0x44]
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00407189
mov esi, dword [ebp + 8]
cmp dword [esi - 0xc], 0
je 0x47fd5c
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x34], 0x10
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x47fd5c
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00406fea
lea ecx, [ebp - 0x40]
call fcn.0042a066
push eax
mov edx, str.hostname
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x3c]
call fcn.004093b4
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
mov ecx, ebx
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004d5d16
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [esi - 0x10]
call fcn.00407189
call fcn.004d8aa1
ret