Function at 0x10019260
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x60
test byte [0x10021108], 8
jne 0x10019580
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x100193b0
cmp ax, 0x2f
je 0x100193b0
xor esi, esi
test ax, ax
je 0x100194c0
mov ebx, dword [ebp + 0xc]
jmp 0x100192a6
cmp ax, 0x2f
je 0x100192c0
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 0x100192a0
mov edx, ebx
sub edx, dword [ebp + 0xc]
cmp edx, 6
ja 0x10019480
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
test ax, ax
je 0x10019640
cmp word [ebx + 2], 0
lea edx, [ebx + 2]
je 0x100196f0
mov ebx, edx
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x100192f0
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 0x1001971c
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 0x1001934d
mov dword [esp + 4], 0x10028a1a
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x10019650
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x20]
je 0x10019504
test byte [0x10021108], 1
jne 0x100194e0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1001953c
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 0x10019610
cmp ax, 0x2f
je 0x10019610
mov esi, dword [ebp + 0xc]
lea edx, [esi + 2]
test ax, ax
je 0x100196c0
movzx eax, word [edx + 2]
lea ebx, [edx + 2]
test ax, ax
jne 0x10019400
jmp 0x100196c0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x100196c0
cmp ax, 0x5c
je 0x100196b0
cmp ax, 0x2f
jne 0x100193f0
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 0x10019712
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 0x100194c0
lea ecx, [ebx + 2]
mov dword [ebp + 0xc], ecx
cmp ax, 0x5c
je 0x10019470
cmp ax, 0x2f
jne 0x1001929b
mov ebx, dword [ebp + 0xc]
jmp 0x100192dd
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 0x100194c0
movzx eax, word [edi + 2]
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
test ax, ax
jne 0x100192dd
jmp 0x10019640
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 0x1001953c
test byte [0x10021108], 1
je 0x10019374
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 0x10019374
test byte [0x10021108], 1
je 0x10019374
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 0x10019374
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 0x10019276
mov eax, dword [ebp + 0xc]
lea edx, [eax + 4]
movzx eax, word [eax + 4]
test ax, ax
je 0x100196c0
cmp ax, 0x5c
je 0x10019633
cmp ax, 0x2f
jne 0x100193da
mov eax, 0x80041008
jmp 0x100193a6
xor edi, edi
jmp 0x10019329
mov dword [esp + 4], str.localhost
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp], esi
call ebx
test eax, eax
je 0x1001934d
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 0x100196fc
test byte [0x10021108], 1
jne 0x100196ca
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
call ebx
mov dword [esp], edi
call ebx
mov eax, 0x80041015
jmp 0x100193a6
test ax, ax
jne 0x10019410
lea esi, [esi]
mov eax, 0x8004100e
jmp 0x100193a6
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 0x10019691
mov eax, 2
xor ebx, ebx
jmp 0x100192fe
mov dword [esp + 4], edx
mov dword [esp], esi
call ebx
test eax, eax
jne 0x10019688
jmp 0x1001934d
mov eax, 0x8007000e
jmp 0x100193a6
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8007000e
jmp 0x100193a6