Function at 0x1801a9ba
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 - 0x28], ecx
lea ecx, [ebp - 0x1c]
push str.request
mov dword [ebp - 0x2c], edx
call fcn.18112f4d
push str.register_policy_agent
lea ecx, [ebp - 0x18]
call fcn.18112f4d
lea ecx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.18112f4d
lea ecx, [ebp - 0x1c]
call fcn.18012dd0
call fcn.18003ad1
push eax
lea ecx, [ebp - 4]
call fcn.18112f4d
call fcn.18003ad1
push eax
lea ecx, [ebp - 8]
call fcn.18112f4d
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.18112f4d
lea ecx, [ebp - 0xc]
test eax, eax
jns 0x1801aa47
push 0x1819359c
call fcn.18112f4d
jmp 0x1801aa4f
lea edx, [ebp - 4]
call fcn.18112f4d
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 4]
add ecx, 0xfffffff0
add esi, 0xfffffff0
call fcn.18004135
mov ecx, esi
call fcn.18004135
push str.Windows
lea ecx, [ebp - 0x18]
call fcn.18112f4d
mov edi, eax
call fcn.18003ad1
push eax
lea ecx, [ebp - 4]
call fcn.18112f4d
push 0x10
pop eax
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.18112f4d
push 0x10
lea ecx, [ebp - 4]
mov esi, eax
call fcn.18112f4d
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetComputerNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.18112f4d
lea edx, [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.18112f4d
lea ecx, [ebp - 0xc]
mov edx, eax
push ecx
push edi
lea ecx, [ebp - 8]
call fcn.18112f4d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.18004135
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004135
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.18004135
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18004135
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
jne 0x1801ab4b
movzx ecx, byte [0x181baf06]
neg ecx
sbb ecx, ecx
and ecx, 0x181ba200
je 0x1801ab41
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.18112f4d
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push str._SerializeRegisterBrowserRequest_failed_
push eax
call fcn.18112f4d
pop ecx
pop ecx
mov edi, 0x80004005
jmp 0x1801ac57
xor edi, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call fcn.18003ad1
push eax
lea ecx, [ebp - 0xc]
call fcn.18112f4d
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0xc]
push str.GoogleEnrollmentToken_token_s
push eax
call fcn.18112f4d
add esp, 0xc
lea eax, [ebp - 0x44]
lea edx, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x38]
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x38], edi
push dword [ebp - 0x2c]
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 ecx, [ebp - 8]
mov eax, dword [ebx + 8]
and dword [ebx + 8], 0
push ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov edi, esp
mov dword [edi], eax
call fcn.18112f4d
mov ecx, dword [ebp - 0xc]
add esp, 0x18
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.18004135
test edi, edi
jns 0x1801abfc
movzx ecx, byte [0x181baf06]
neg ecx
sbb ecx, ecx
and ecx, 0x181ba200
je 0x1801ac4f
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.18112f4d
push edi
push str._SendDeviceManagementRequest_failed___x_
jmp 0x1801ac3c
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 0x44]
call fcn.18112f4d
mov edi, eax
test edi, edi
jns 0x1801ac4d
movzx ecx, byte [0x181baf06]
neg ecx
sbb ecx, ecx
and ecx, 0x181ba200
je 0x1801ac4f
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.18112f4d
push edi
push str._ParseDeviceRegisterResponse_failed___x_
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
call fcn.18112f4d
add esp, 0xc
jmp 0x1801ac4f
xor edi, edi
lea ecx, [ebp - 0x44]
call fcn.1800ae74
lea ecx, [esi - 0x10]
call fcn.18004135
lea ecx, [ebp - 0x38]
call fcn.18112f4d
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x1801ac74
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret