Function at 0x72a6d990
Capabilities:
Get hostname

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x36]
push ebx
lea ebx, [ebp - 0x32]
mov ecx, esi
mov edi, ebx
and edi, 0xfffffffc
sub ecx, edi
sub esp, 0x7c
mov dword [ebp - 0x40], 0
add ecx, 0x26
mov dword [ebp - 0x36], 0
shr ecx, 2
mov dword [ebp - 0x14], 0
rep stosd dword es:[edi], eax
test byte [0x72a768c4], 1
jne 0x72a6dc30
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov eax, dword [ebp + 0x20]
mov dword [eax], 0
mov eax, dword [ebp + 8]
and eax, 0x54
mov dword [ebp - 0x44], eax
jne 0x72a6da54
test byte [ebp + 8], 0xa
je 0x72a6dad5
cmp dword [ebp + 0x10], 3
je 0x72a6dca0
cmp dword [ebp + 0x10], 5
ja 0x72a6dca0
cmp dword [ebp + 0x10], 1
jne 0x72a6daf4
test byte [ebp + 8], 8
je 0x72a6daf4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x72a6da5f
mov eax, dword [ebp + 0xc]
cmp word [eax], 0x5c
je 0x72a6dcd0
mov eax, dword [str.Windows_NT_Local_Print_Providor]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x72a6db12
xor ebx, ebx
mov dword [ebp - 0x44], 0x7b
jmp 0x72a6dada
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [eax], 0x10
mov dword [ebp - 0x48], ebx
mov ebx, eax
mov eax, dword [esi*4 + 0x72a76600]
add esi, 1
mov dword [esp], eax
call edi
mov ecx, dword [ebx]
lea eax, [ecx + eax*2 + 2]
mov dword [ebx], eax
cmp esi, 3
jne 0x72a6da78
mov ebx, dword [ebp - 0x48]
cmp dword [ebp + 0x18], eax
jb 0x72a6dcb0
mov edx, dword [ebp + 0x1c]
mov dword [ebx], 0
mov eax, dword [edx]
mov dword [esp + 8], 0x72a768ac
mov dword [esp + 4], ebx
add eax, ebx
mov dword [esp], str.Windows_NT_Local_Print_Providor
mov dword [esp + 0xc], eax
call sym._PackStrings_16
mov eax, dword [ebp + 0x20]
sub esp, 0x10
mov dword [eax], 1
mov ebx, 1
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call sym._SetLastError_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x72a6db12
mov eax, dword [ebp + 0xc]
cmp word [eax], 0x5c
je 0x72a6dcc0
test byte [ebp + 8], 8
jne 0x72a6da37
mov ebx, dword [ebp + 8]
mov edi, dword [0x72a7ce00]
and ebx, 0x20
test edi, edi
jne 0x72a6db6c
jmp 0x72a6dbb4
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x14], esi
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x80]
mov dword [esp], eax
mov eax, dword [ebp + 0x10]
call dword [eax*4 + str.pr_r_r]
mov edi, dword [edi + 0x40]
test edi, edi
je 0x72a6dbb4
test ebx, ebx
je 0x72a6db30
test byte [0x72a768c4], 1
je 0x72a6db65
mov dword [esp + 0x14], str.Printer_Sharing_is_not_supported_yet__returning_no_printers__n
mov dword [esp + 0x10], 0x3b4
mov dword [esp + 0xc], str.LocalEnumPrinters
mov dword [esp + 8], 0x72a79aad
mov dword [esp + 4], 0x72a768c4
mov dword [esp], 0
call sym._ros_dbg_log
mov edi, dword [edi + 0x40]
test edi, edi
jne 0x72a6db6c
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x18]
ja 0x72a6dcb0
mov edi, dword [0x72a7ce00]
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
test edi, edi
je 0x72a6dad5
mov ebx, dword [ebp + 8]
and ebx, 0x20
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x72a6dc20
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov dword [esp + 0x14], esi
mov dword [esp + 8], eax
lea eax, [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov edx, dword [edi + 0x80]
mov dword [esp], edx
call dword [eax*4 + str.pr_r_r]
add dword [ebx], 1
mov edi, dword [edi + 0x40]
test edi, edi
jne 0x72a6dbe2
jmp 0x72a6dad5
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x14], str.LocalEnumPrinters__lu___S___lu___p___lu___p___p__n
mov dword [esp + 0x10], 0x37d
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0xc], str.LocalEnumPrinters
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], 0x72a79aad
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0x72a768c4
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], 0
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
call sym._ros_dbg_log
jmp 0x72a6d9d4
xor ebx, ebx
mov dword [ebp - 0x44], 0x7c
jmp 0x72a6dada
xor ebx, ebx
mov dword [ebp - 0x44], 0x7a
jmp 0x72a6dada
cmp word [eax + 2], 0x5c
jne 0x72a6db08
jmp 0x72a6dcdb
cmp word [eax + 2], 0x5c
jne 0x72a6da37
lea eax, [ebp - 0x40]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [ebp - 0x36], 0x5c005c
mov dword [ebp - 0x40], 0x10
call sym._GetComputerNameW_8
sub esp, 8
mov ebx, eax
test eax, eax
je 0x72a6dd57
mov eax, dword [ebp - 0x40]
mov ebx, 4
mov dword [ebp - 0x4c], eax
add eax, 2
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
movzx edi, word [esi + ebx]
movzx eax, word [eax + ebx]
test di, di
jne 0x72a6dd30
test ax, ax
je 0x72a6dd75
cmp ax, 0x5c
je 0x72a6dd99
mov dword [esp], eax
add ebx, 2
call dword [sym.imp.msvcrt.dll_towlower]
movzx edx, di
mov word [ebp - 0x48], ax
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll_towlower]
cmp word [ebp - 0x48], ax
je 0x72a6dd15
jmp 0x72a6da54
test byte [0x72a768c4], 2
jne 0x72a6ddb5
call sym._GetLastError_0
test eax, eax
je 0x72a6db12
mov dword [ebp - 0x44], eax
jmp 0x72a6dada
mov eax, dword [ebp - 0x4c]
mov ecx, 0x5c
xor ebx, ebx
add eax, 3
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x50]
add eax, eax
mov word [ebp + eax - 0x36], cx
mov word [ebp + eax - 0x34], bx
jmp 0x72a6db12
test byte [ebp + 8], 8
jne 0x72a6da54
xor edx, edx
mov dword [ebp - 0x40], 0
mov word [ebp - 0x36], dx
jmp 0x72a6db12
call sym._GetLastError_0
mov dword [esp + 0x14], str.GetComputerNameW_failed_with_error__lu__n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x1ae
mov dword [esp + 0xc], str._LocalEnumPrintersCheckName
mov dword [esp + 8], 0x72a79aad
mov dword [esp + 4], 0x72a768c4
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a6dd60