Function at 0x1001d830
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x60
mov edx, dword [ebp + 0xc]
test byte [0x10021884], 8
jne 0x1001db00
movzx eax, word [edx]
cmp ax, 0x5c
je 0x1001d998
cmp ax, 0x2f
je 0x1001d998
test ax, ax
je 0x1001dbf8
xor ebx, ebx
mov edi, edx
mov dword [ebp - 0x34], ebx
jmp 0x1001d87e
cmp ax, 0x2f
je 0x1001d898
mov esi, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
setne bl
cmp ax, 0x5c
setne cl
test bl, cl
jne 0x1001d878
mov ecx, edx
mov ebx, dword [ebp - 0x34]
sub ecx, edi
cmp ecx, 6
ja 0x1001dbc0
test ax, ax
je 0x1001dbee
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x34], eax
cmp word [edx + 2], 0
lea ecx, [edx + 2]
je 0x1001dcc0
mov eax, ecx
lea esi, [esi]
mov esi, eax
add eax, 2
cmp word [eax], 0
jne 0x1001d8d0
sub esi, edx
lea eax, [esi + 2]
mov dword [ebp - 0x38], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
call eax
mov edi, eax
test eax, eax
je 0x1001dce2
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym._memcpy
xor eax, eax
mov word [edi + esi], ax
mov dword [ebp - 0x30], 0x10
test ebx, ebx
je 0x1001d932
mov dword [esp + 4], 0x1002d3da
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x1001dc18
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x20]
je 0x1001da84
test byte [0x10021884], 1
jne 0x1001da60
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1001dabc
mov eax, dword [ebp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x24]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._WbemServices_create
mov dword [esp], edi
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov esi, eax
call edi
mov dword [esp], ebx
call edi
xor eax, eax
test esi, esi
cmovg esi, eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x24
movzx eax, word [edx + 2]
cmp ax, 0x5c
je 0x1001db90
cmp ax, 0x2f
je 0x1001db90
lea ecx, [edx + 2]
test ax, ax
je 0x1001dc88
movzx eax, word [ecx + 2]
lea edi, [ecx + 2]
test ax, ax
jne 0x1001d9e0
jmp 0x1001dc88
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
je 0x1001dc88
cmp ax, 0x5c
je 0x1001dc78
cmp ax, 0x2f
jne 0x1001d9d0
mov esi, edi
mov dword [ebp - 0x38], ecx
sub esi, ecx
lea eax, [esi + 2]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x34], eax
call eax
mov ebx, eax
test eax, eax
je 0x1001dce2
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym._memcpy
xor eax, eax
mov word [ebx + esi], ax
movzx eax, word [edi + 2]
test ax, ax
je 0x1001dbfa
lea edx, [edi + 2]
cmp ax, 0x2f
je 0x1001d8b9
cmp ax, 0x5c
je 0x1001d8b9
mov dword [ebp - 0x34], ebx
mov edi, edx
jmp 0x1001d87e
mov dword [esp + 0xc], str.authentication_not_supported_n
mov dword [esp + 8], 0x1002d534
mov dword [esp + 4], 0x10021884
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_12
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x1001dabc
test byte [0x10021884], 1
je 0x1001d959
mov dword [esp + 0xc], str.specific_locale_not_supported_n
mov dword [esp + 8], 0x1002d534
mov dword [esp + 4], 0x10021884
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_12
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x1001d959
test byte [0x10021884], 1
je 0x1001d959
mov dword [esp + 0xc], str.unsupported_flags_n
mov dword [esp + 8], 0x1002d534
mov dword [esp + 4], 0x10021884
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_12
jmp 0x1001d959
mov eax, dword [ebp + 0x20]
call sym._wine_dbgstr_wn.constprop.0_6
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
call sym._wine_dbgstr_wn.constprop.0_6
mov edi, eax
mov eax, dword [ebp + 0x14]
call sym._wine_dbgstr_wn.constprop.0_6
mov esi, eax
mov eax, dword [ebp + 0x10]
call sym._wine_dbgstr_wn.constprop.0_6
mov ebx, eax
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_6
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str._p___s___s___s___s___lx___s___p___p__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x1002d534
mov dword [esp + 4], 0x10021884
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_12
mov edx, dword [ebp + 0xc]
jmp 0x1001d849
movzx eax, word [edx + 4]
lea ecx, [edx + 4]
test ax, ax
je 0x1001dc88
cmp ax, 0x5c
je 0x1001dbb0
cmp ax, 0x2f
jne 0x1001d9bc
mov esi, 0x80041008
jmp 0x1001d988
sar ecx, 1
mov dword [ebp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], str.root
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov edx, dword [ebp + 0xc]
test eax, eax
jne 0x1001dbfa
movzx eax, word [esi + 2]
test ax, ax
jne 0x1001d8b1
xor edi, edi
jmp 0x1001d90e
xor ebx, ebx
mov esi, 0x8004100e
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x24
mov dword [esp + 4], str.localhost
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp], ebx
call esi
test eax, eax
je 0x1001d932
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetComputerNameW]
lea edx, [ebp - 0x2c]
sub esp, 8
test eax, eax
jne 0x1001dccc
test byte [0x10021884], 1
jne 0x1001dc92
mov dword [esp], ebx
mov esi, 0x80041015
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov dword [esp], edi
call ebx
jmp 0x1001d988
test ax, ax
jne 0x1001d9f0
lea esi, [esi]
mov esi, 0x8004100e
jmp 0x1001d988
mov dword [esp + 0xc], str.remote_computer_not_supported_n
mov dword [esp + 8], 0x1002d534
mov dword [esp + 4], 0x10021884
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_12
jmp 0x1001dc59
mov eax, 2
xor esi, esi
jmp 0x1001d8e0
mov dword [esp + 4], edx
mov dword [esp], ebx
call esi
test eax, eax
jne 0x1001dc50
jmp 0x1001d932
mov esi, 0x8007000e
jmp 0x1001dbff