Function at 0x18019880
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x1c]
push str.request
mov dword [ebp - 0x28], edx
call fcn.1800585a
push str.register_policy_agent
lea ecx, [ebp - 0x18]
call fcn.1800585a
lea ecx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.1801a300
lea ecx, [ebp - 0x1c]
call fcn.18011c1b
call fcn.18002dd1
push eax
lea ecx, [ebp - 4]
call fcn.18005b92
call fcn.18002dd1
push eax
lea ecx, [ebp - 8]
call fcn.18005b92
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.18097792
lea ecx, [ebp - 0xc]
test eax, eax
jns 0x1801990d
push 0x18176288
call fcn.1801a3a2
jmp 0x18019915
lea edx, [ebp - 4]
call fcn.1800b09a
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 4]
add ecx, 0xfffffff0
add esi, 0xfffffff0
call fcn.18003435
mov ecx, esi
call fcn.18003435
push str.Windows
lea ecx, [ebp - 0x18]
call fcn.1801a3a2
mov edi, eax
call fcn.18002dd1
push eax
lea ecx, [ebp - 4]
call fcn.18005b92
push 0x10
pop eax
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.18005a88
push 0x10
lea ecx, [ebp - 4]
mov esi, eax
call fcn.18005a5d
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.180058b5
lea edx, [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.1800b09a
lea ecx, [ebp - 0xc]
mov edx, eax
push ecx
push edi
lea ecx, [ebp - 8]
call fcn.1804aeb9
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.18003435
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18003435
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.18003435
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18003435
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
jne 0x18019a11
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x18019a07
push 9
pop eax
push 0xfffffffffffffffe
pop edx
push edx
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call fcn.18004986
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push str._SerializeRegisterBrowserRequest_failed_
push eax
call fcn.18002f73
pop ecx
pop ecx
mov edi, 0x80004005
jmp 0x18019b15
xor edi, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call fcn.18002dd1
push eax
lea ecx, [ebp - 0xc]
call fcn.18005b92
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0xc]
push str.GoogleEnrollmentToken_token_s
push eax
call fcn.1800dbe3
add esp, 0xc
lea eax, [ebp - 0x44]
lea edx, [ebp - 8]
push eax
mov eax, dword [ebp - 0x38]
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x38], edi
push dword [ebx + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x34]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx + 8], eax
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
call fcn.18019d56
mov ecx, dword [ebp - 0xc]
add esp, 0x18
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.18003435
test edi, edi
jns 0x18019aba
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x18019b0d
push 9
pop eax
push 0xfffffffffffffffe
pop edx
push edx
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call fcn.18004986
push edi
push str._SendDeviceManagementRequest_failed___x_
jmp 0x18019afa
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 0x44]
call fcn.1804b155
mov edi, eax
test edi, edi
jns 0x18019b0b
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x18019b0d
push 9
pop eax
push 0xfffffffffffffffe
pop edx
push edx
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call fcn.18004986
push edi
push str._ParseDeviceRegisterResponse_failed___x_
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
call fcn.18002f73
add esp, 0xc
jmp 0x18019b0d
xor edi, edi
lea ecx, [ebp - 0x44]
call fcn.18009eb8
lea ecx, [esi - 0x10]
call fcn.18003435
lea ecx, [ebp - 0x38]
call fcn.1801a3e5
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret