Function at 0x180198c2
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.1800589b
push str.register_policy_agent
lea ecx, [ebp - 0x18]
call fcn.1800589b
lea ecx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.1801a342
lea ecx, [ebp - 0x1c]
call fcn.18011c5a
call fcn.18002e11
push eax
lea ecx, [ebp - 4]
call fcn.18005bd3
call fcn.18002e11
push eax
lea ecx, [ebp - 8]
call fcn.18005bd3
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.1809f381
lea ecx, [ebp - 0xc]
test eax, eax
jns 0x1801994f
push 0x1817f20c
call fcn.1801a3e4
jmp 0x18019957
lea edx, [ebp - 4]
call fcn.1800b0db
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 4]
add ecx, 0xfffffff0
add esi, 0xfffffff0
call fcn.18003476
mov ecx, esi
call fcn.18003476
push str.Windows
lea ecx, [ebp - 0x18]
call fcn.1801a3e4
mov edi, eax
call fcn.18002e11
push eax
lea ecx, [ebp - 4]
call fcn.18005bd3
push 0x10
pop eax
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.18005ac9
push 0x10
lea ecx, [ebp - 4]
mov esi, eax
call fcn.18005a9e
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.180058f6
lea edx, [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.1800b0db
lea ecx, [ebp - 0xc]
mov edx, eax
push ecx
push edi
lea ecx, [ebp - 8]
call fcn.1804b0bb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.18003476
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18003476
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.18003476
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18003476
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
jne 0x18019a53
movzx ecx, byte [0x181a7c1c]
neg ecx
sbb ecx, ecx
and ecx, 0x181a75e0
je 0x18019a49
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.180049c7
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push str._SerializeRegisterBrowserRequest_failed_
push eax
call fcn.18002fb3
pop ecx
pop ecx
mov edi, 0x80004005
jmp 0x18019b57
xor edi, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call fcn.18002e11
push eax
lea ecx, [ebp - 0xc]
call fcn.18005bd3
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0xc]
push str.GoogleEnrollmentToken_token_s
push eax
call fcn.1800dc24
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.18019d98
mov ecx, dword [ebp - 0xc]
add esp, 0x18
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.18003476
test edi, edi
jns 0x18019afc
movzx ecx, byte [0x181a7c1c]
neg ecx
sbb ecx, ecx
and ecx, 0x181a75e0
je 0x18019b4f
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.180049c7
push edi
push str._SendDeviceManagementRequest_failed___x_
jmp 0x18019b3c
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 0x44]
call fcn.1804b357
mov edi, eax
test edi, edi
jns 0x18019b4d
movzx ecx, byte [0x181a7c1c]
neg ecx
sbb ecx, ecx
and ecx, 0x181a75e0
je 0x18019b4f
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.180049c7
push edi
push str._ParseDeviceRegisterResponse_failed___x_
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
call fcn.18002fb3
add esp, 0xc
jmp 0x18019b4f
xor edi, edi
lea ecx, [ebp - 0x44]
call fcn.18009ef9
lea ecx, [esi - 0x10]
call fcn.18003476
lea ecx, [ebp - 0x38]
call fcn.1801a427
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret