Function at 0x416270
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d2df
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4bfdd0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x424], esi
mov dword [esi], 0
mov dword [ebp - 4], 0
call fcn.00470974
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4162d0
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
call fcn.00470974
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4162fd
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 2
call fcn.00470974
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41632a
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 3
call fcn.00470974
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416357
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 4
call fcn.00470974
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416384
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 5
call fcn.00470974
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4163b1
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x18], eax
lea ebx, [esi + 0x1c]
mov byte [ebp - 4], 6
mov dword [ebp - 0x428], ebx
call fcn.00470974
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4163e7
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 7
lea edi, [esi + 0x20]
call fcn.00470974
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416416
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 8
call fcn.00470974
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416442
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 0xa
mov eax, dword [esi]
test eax, eax
je 0x416469
mov dword [esi], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0
push 0x4a6221
lea ecx, [esi + 4]
call fcn.00404530
push 8
push 0x4a85c4
lea ecx, [esi + 8]
call fcn.00404530
push 0
push 0x4a6221
lea ecx, [esi + 0xc]
call fcn.00404530
push 4
push 0x4a85d0
lea ecx, [esi + 0x10]
call fcn.00404530
push 0
push 0x4a6221
lea ecx, [esi + 0x14]
call fcn.00404530
push 0
push 0x4a6221
lea ecx, [esi + 0x18]
call fcn.00404530
push 0
push 0x4a6221
mov ecx, ebx
call fcn.00404530
push 0
push 0x4a6221
mov ecx, edi
call fcn.00404530
push 0
push 0x4a6221
lea ecx, [esi + 0x24]
call fcn.00404530
mov dword [esi + 0x28], 1
lea esi, [ebp - 0x420]
call fcn.00416600
mov bl, 0xb
push 1
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], bl
call fcn.00414bb0
mov esi, dword [ebp - 0x428]
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
push eax
push 0x4a6224
push esi
call fcn.004051a0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416552
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, esi
call fcn.00404290
mov edi, eax
call fcn.00404f70
mov eax, dword [eax]
push 0x4a6221
push eax
call fcn.00485357
add esp, 8
test eax, eax
jne 0x4165c6
push 0x3ff
push eax
lea ecx, [ebp - 0x417]
push ecx
mov byte [ebp - 0x418], al
call fcn.00487460
add esp, 0xc
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x41c], 0x400
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x4165c6
lea ecx, [ebp - 0x418]
push ecx
push 0x4a6224
push esi
call fcn.004051a0
add esp, 0xc
lea eax, [ebp - 0x420]
call fcn.00416120
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00483c76
mov esp, ebp
pop ebp
ret