Function at 0x10019270
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x60
test byte [0x10021108], 8
jne 0x10019590
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x100193c0
cmp ax, 0x2f
je 0x100193c0
xor esi, esi
test ax, ax
je 0x100194d0
mov ebx, dword [ebp + 0xc]
jmp 0x100192b6
cmp ax, 0x2f
je 0x100192d0
mov edi, ebx
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
setne cl
cmp ax, 0x5c
setne dl
test cl, dl
jne 0x100192b0
mov edx, ebx
sub edx, dword [ebp + 0xc]
cmp edx, 6
ja 0x10019490
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
test ax, ax
je 0x10019650
cmp word [ebx + 2], 0
lea edx, [ebx + 2]
je 0x10019700
mov ebx, edx
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x10019300
sub ebx, edx
lea eax, [ebx + 2]
mov dword [ebp - 0x34], edx
mov dword [esp], eax
call edi
mov edi, eax
test eax, eax
je 0x1001972c
mov edx, dword [ebp - 0x34]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._memcpy
xor eax, eax
mov word [edi + ebx], ax
mov dword [ebp - 0x30], 0x10
test esi, esi
je 0x1001935d
mov dword [esp + 4], 0x10028a1a
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x10019660
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x20]
je 0x10019514
test byte [0x10021108], 1
jne 0x100194f0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1001954c
mov eax, dword [ebp + 0x28]
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 4], eax
call sym._WbemServices_create
mov dword [esp], edi
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, eax
call edi
mov dword [esp], esi
call edi
test ebx, ebx
mov eax, 0
cmovle eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x24
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 2]
cmp ax, 0x5c
je 0x10019620
cmp ax, 0x2f
je 0x10019620
mov esi, dword [ebp + 0xc]
lea edx, [esi + 2]
test ax, ax
je 0x100196d0
movzx eax, word [edx + 2]
lea ebx, [edx + 2]
test ax, ax
jne 0x10019410
jmp 0x100196d0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x100196d0
cmp ax, 0x5c
je 0x100196c0
cmp ax, 0x2f
jne 0x10019400
mov eax, ebx
mov dword [ebp - 0x38], edx
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
sub eax, edx
mov dword [ebp - 0x34], eax
add eax, 2
mov dword [esp], eax
call edi
mov esi, eax
test eax, eax
je 0x10019722
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebp - 0x34]
xor edx, edx
mov word [esi + eax], dx
movzx eax, word [ebx + 2]
test ax, ax
je 0x100194d0
lea ecx, [ebx + 2]
mov dword [ebp + 0xc], ecx
cmp ax, 0x5c
je 0x10019480
cmp ax, 0x2f
jne 0x100192ab
mov ebx, dword [ebp + 0xc]
jmp 0x100192ed
mov eax, dword [ebp + 0xc]
sar edx, 1
mov dword [esp], str.root
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x100194d0
movzx eax, word [edi + 2]
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
test ax, ax
jne 0x100192ed
jmp 0x10019650
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, 0x8004100e
pop ebx
pop esi
pop edi
pop ebp
ret 0x24
mov dword [esp + 0xc], str.authentication_not_supported_n
mov dword [esp + 8], str.wbem_locator_ConnectServer
mov dword [esp + 4], 0x10021108
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_12
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x1001954c
test byte [0x10021108], 1
je 0x10019384
mov dword [esp + 0xc], str.specific_locale_not_supported_n
mov dword [esp + 8], str.wbem_locator_ConnectServer
mov dword [esp + 4], 0x10021108
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_12
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x10019384
test byte [0x10021108], 1
je 0x10019384
mov dword [esp + 0xc], str.unsupported_flags_n
mov dword [esp + 8], str.wbem_locator_ConnectServer
mov dword [esp + 4], 0x10021108
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_12
jmp 0x10019384
mov eax, dword [ebp + 0x20]
call sym._wine_dbgstr_wn.constprop.0_6
mov esi, eax
mov eax, dword [ebp + 0x18]
call sym._wine_dbgstr_wn.constprop.0_6
mov ebx, eax
mov eax, dword [ebp + 0x14]
call sym._wine_dbgstr_wn.constprop.0_6
mov edi, eax
mov eax, dword [ebp + 0x10]
call sym._wine_dbgstr_wn.constprop.0_6
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_6
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x28], esi
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ecx
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], esi
mov ecx, dword [ebp + 0x24]
mov esi, dword [ebp - 0x34]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._p___s___s___s___s___lx___s___p___p__n
mov dword [esp + 8], str.wbem_locator_ConnectServer
mov dword [esp + 4], 0x10021108
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_12
jmp 0x10019286
mov eax, dword [ebp + 0xc]
lea edx, [eax + 4]
movzx eax, word [eax + 4]
test ax, ax
je 0x100196d0
cmp ax, 0x5c
je 0x10019643
cmp ax, 0x2f
jne 0x100193ea
mov eax, 0x80041008
jmp 0x100193b6
xor edi, edi
jmp 0x10019339
mov dword [esp + 4], str.localhost
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp], esi
call ebx
test eax, eax
je 0x1001935d
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 0x1001970c
test byte [0x10021108], 1
jne 0x100196da
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
call ebx
mov dword [esp], edi
call ebx
mov eax, 0x80041015
jmp 0x100193b6
test ax, ax
jne 0x10019420
lea esi, [esi]
mov eax, 0x8004100e
jmp 0x100193b6
mov dword [esp + 0xc], str.remote_computer_not_supported_n
mov dword [esp + 8], str.wbem_locator_ConnectServer
mov dword [esp + 4], 0x10021108
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_12
jmp 0x100196a1
mov eax, 2
xor ebx, ebx
jmp 0x1001930e
mov dword [esp + 4], edx
mov dword [esp], esi
call ebx
test eax, eax
jne 0x10019698
jmp 0x1001935d
mov eax, 0x8007000e
jmp 0x100193b6
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8007000e
jmp 0x100193b6