Function at 0x1000c790
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x68
mov ebx, dword [ebp + 8]
test byte [0x10013318], 8
je 0x1000c7eb
cmp ebx, 0xe
ja 0x1000c810
mov eax, dword [ebx*4 + 0x100172e0]
test eax, eax
je 0x1000c810
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s__p__p__n
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 8], str.GetComputerObjectNameW
mov dword [esp + 4], 0x10013318
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
test ebx, ebx
jne 0x1000c820
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, ebx
call sym._debugstr_NameFormat.part.0
jmp 0x1000c7b5
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x50]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x44], 0x18
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_LsaOpenPolicy]
sub esp, 0x10
test eax, eax
jne 0x1000c930
lea eax, [ebp - 0x4c]
mov dword [esp + 4], 0xc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_LsaQueryInformationPolicy]
sub esp, 0xc
test eax, eax
jne 0x1000c988
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax + 0x28]
test esi, esi
je 0x1000c8f0
cmp ebx, 0xc
ja case.0x1000c8b1.0
jmp dword [ebx*4 + 0x10017088]
test byte [0x10013318], 1
je 0x1000c8f0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.NameFormat__d_not_implemented_n
mov dword [esp + 8], str.GetComputerObjectNameW
mov dword [esp + 4], 0x10013318
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [ebp - 0x4c]
lea esi, [esi]
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x547
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_LsaFreeMemory]
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_LsaClose]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_LsaNtStatusToWinError]
movzx ebx, byte [0x10013318]
mov edx, dword fs:[0x18]
sub esp, 4
mov dword [edx + 0x34], eax
and ebx, 4
je 0x1000c7fc
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0xc], str.LsaOpenPolicy_failed_with_NT_status__lu_n
mov dword [esp + 8], str.GetComputerObjectNameW
mov dword [esp + 4], 0x10013318
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000c7fc
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_LsaNtStatusToWinError]
sub esp, 4
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], eax
test byte [0x10013318], 4
jne 0x1000cb20
mov eax, dword [ebp - 0x50]
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_LsaClose]
sub esp, 4
jmp 0x1000c7fc
mov edx, dword fs:[0x18]
xor ebx, ebx
mov dword [edx + 0x34], 0x57
jmp 0x1000c900
lea eax, [ebp - 0x48]
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x48], 0x10
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetComputerNameW]
sub esp, 8
test eax, eax
jne 0x1000cb70
mov eax, dword [ebp - 0x4c]
xor ebx, ebx
jmp 0x1000c900
lea eax, [ebp - 0x48]
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x48], 0x10
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetComputerNameW]
sub esp, 8
test eax, eax
je 0x1000cb50
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
movzx ecx, word [eax]
lea ecx, [ebx + ecx + 3]
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1000ce50
mov esi, dword [ebp + 0x10]
cmp ecx, dword [esi]
ja 0x1000ce50
mov esi, dword [eax + 4]
test esi, esi
je 0x1000ce7c
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
lea esi, [esi]
movzx edx, word [esi + ecx]
mov word [ebx + ecx], dx
add ecx, 2
test dx, dx
jne 0x1000ca60
mov esi, dword [ebp + 0xc]
cmp word [esi], 0
je 0x1000cea3
mov ebx, esi
nop
add ebx, 2
cmp word [ebx], 0
jne 0x1000ca80
xor ecx, ecx
nop
lea esi, [esi]
movzx edx, word [ecx + 0x10017032]
mov word [ebx + ecx], dx
add ecx, 2
test dx, dx
jne 0x1000ca90
mov esi, dword [ebp + 0xc]
cmp word [esi], 0
je 0x1000ced3
mov ebx, esi
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x1000cab8
xor ecx, ecx
nop
lea esi, [esi]
movzx edx, word [edi + ecx]
mov word [ebx + ecx], dx
add ecx, 2
test dx, dx
jne 0x1000cac8
mov edi, dword [ebp + 0xc]
cmp word [edi], 0
je 0x1000caf4
mov edx, edi
nop
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x1000cae8
mov dword [ebp + 0xc], edx
mov ebx, dword [ebp + 0xc]
xor edx, edx
lea esi, [esi]
movzx ecx, word [edx + 0x10017036]
mov word [ebx + edx], cx
add edx, 2
test cx, cx
jne 0x1000cb00
mov ebx, 1
jmp 0x1000c900
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.LsaQueryInformationPolicy_failed_with_NT_status__lu_n
mov dword [esp + 8], str.GetComputerObjectNameW
mov dword [esp + 4], 0x10013318
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000c9ab
mov eax, dword fs:[0x18]
xor ebx, ebx
mov dword [eax + 0x34], 0x54f
mov eax, dword [ebp - 0x4c]
jmp 0x1000c900
mov ebx, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp], 0x1001703a
call ebx
mov esi, dword [ebp - 0x48]
mov dword [esp], str.CNComputers
mov dword [ebp - 0x54], eax
call ebx
add esi, 2
mov dword [esp], 0x1001705c
add esi, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
call ebx
add esi, dword [ebp - 0x58]
add eax, esi
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x1000cc07
mov dword [esp], esi
mov dword [esp + 4], 0x2e
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov esi, eax
test eax, eax
je 0x1000cbf6
lea edx, [eax + 2]
xor eax, eax
mov word [esi], ax
mov dword [ebp - 0x58], edx
mov dword [esp], 0x1001705c
call ebx
mov edx, dword [ebp - 0x58]
mov esi, eax
mov dword [esp], edx
call ebx
mov ecx, dword [ebp - 0x54]
lea ecx, [ecx + esi + 1]
mov esi, dword [ebp - 0x58]
add eax, ecx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call ebx
add dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1000ce6a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x54]
cmp dword [ecx], edx
jbe 0x1000ce6a
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
lea esi, [esi]
movzx edx, word [ecx + 0x1001703a]
mov word [ebx + ecx], dx
add ecx, 2
test dx, dx
jne 0x1000cc28
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
je 0x1000ce9b
mov ebx, ecx
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x1000cc50
xor ecx, ecx
nop
lea esi, [esi]
movzx edx, word [edi + ecx]
mov word [ebx + ecx], dx
add ecx, 2
test dx, dx
jne 0x1000cc60
mov edi, dword [ebp + 0xc]
cmp word [edi], 0
je 0x1000ce93
mov ecx, edi
nop
add ecx, 2
cmp word [ecx], 0
jne 0x1000cc80
xor edx, edx
nop
lea esi, [esi]
movzx ebx, word [edx + 0x10017064]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x1000cc90
mov edi, dword [ebp + 0xc]
cmp word [edi], 0
je 0x1000ce8b
mov ecx, edi
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x1000ccb8
xor edx, edx
nop
lea esi, [esi]
movzx ebx, word [edx + str.CNComputers]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x1000ccc8
mov edx, dword [eax + 0xc]
test edx, edx
je 0x1000ce38
mov edi, dword [ebp + 0xc]
cmp word [edi], 0
je 0x1000ceab
mov ecx, edi
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x1000ccf8
xor edx, edx
nop
lea esi, [esi]
movzx ebx, word [edx + 0x10017064]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x1000cd08
mov edi, dword [ebp + 0xc]
cmp word [edi], 0
je 0x1000cebb
mov ecx, edi
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x1000cd30
xor edx, edx
nop
lea esi, [esi]
movzx ebx, word [edx + 0x1001705c]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x1000cd40
mov ecx, dword [ebp + 0xc]
mov edi, dword [eax + 0xc]
cmp word [ecx], 0
je 0x1000ceb3
nop
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x1000cd68
xor edx, edx
nop
lea esi, [esi]
movzx ebx, word [edi + edx]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x1000cd78
test esi, esi
je 0x1000ce38
mov edi, dword [ebp + 0xc]
cmp word [edi], 0
je 0x1000cecb
mov ecx, edi
nop
add ecx, 2
cmp word [ecx], 0
jne 0x1000cda0
xor edx, edx
nop
lea esi, [esi]
movzx ebx, word [edx + 0x10017064]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x1000cdb0
mov edi, dword [ebp + 0xc]
cmp word [edi], 0
je 0x1000cec3
mov ecx, edi
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x1000cdd8
xor edx, edx
nop
lea esi, [esi]
movzx ebx, word [edx + 0x1001705c]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x1000cde8
mov edi, dword [ebp + 0xc]
cmp word [edi], 0
je 0x1000ce1c
mov edx, edi
lea esi, [esi]
lea edi, [edi]
add edx, 2
cmp word [edx], 0
jne 0x1000ce10
mov dword [ebp + 0xc], edx
mov ebx, dword [ebp + 0xc]
xor edx, edx
lea esi, [esi]
movzx ecx, word [esi + edx]
mov word [ebx + edx], cx
add edx, 2
test cx, cx
jne 0x1000ce28
mov ebx, 1
mov edx, dword [ebp - 0x54]
mov edi, dword [ebp + 0x10]
add edx, 1
mov dword [edi], edx
jmp 0x1000c900
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov edx, dword fs:[0x18]
mov dword [edi], ecx
mov dword [edx + 0x34], 0x7a
jmp 0x1000c900
mov edx, dword fs:[0x18]
xor ebx, ebx
mov dword [edx + 0x34], 0x7a
jmp 0x1000ce3d
mov esi, dword [ebp + 0xc]
xor edx, edx
mov word [esi], dx
mov ebx, esi
jmp 0x1000cac1
mov ecx, dword [ebp + 0xc]
jmp 0x1000ccc1
mov ecx, dword [ebp + 0xc]
jmp 0x1000cc89
mov ebx, dword [ebp + 0xc]
jmp 0x1000cc59
mov ebx, dword [ebp + 0xc]
jmp 0x1000ca89
mov ecx, dword [ebp + 0xc]
jmp 0x1000cd01
mov ecx, dword [ebp + 0xc]
jmp 0x1000cd71
mov ecx, dword [ebp + 0xc]
jmp 0x1000cd39
mov ecx, dword [ebp + 0xc]
jmp 0x1000cde1
mov ecx, dword [ebp + 0xc]
jmp 0x1000cda9
mov ebx, dword [ebp + 0xc]
jmp 0x1000cac1