Function at 0x71058400
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
test byte [0x71060108], 8
jne 0x71058730
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x71058560
cmp ax, 0x2f
je 0x71058560
xor esi, esi
test ax, ax
je 0x71058670
mov ebx, dword [ebp + 0xc]
jmp 0x7105844e
cmp ax, 0x2f
je 0x71058468
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 0x71058448
mov edx, ebx
sub edx, dword [ebp + 0xc]
cmp edx, 6
ja 0x71058630
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
test ax, ax
je 0x710587f0
cmp word [ebx + 2], 0
lea edx, [ebx + 2]
je 0x710588a0
mov ebx, edx
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x71058498
sub ebx, edx
lea eax, [ebx + 2]
mov dword [ebp - 0x4c], edx
mov dword [esp], eax
call edi
mov edi, eax
test eax, eax
je 0x710588cc
mov edx, dword [ebp - 0x4c]
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 - 0x3c], 0x10
test esi, esi
je 0x710584f5
mov dword [esp + 4], 0x710678fa
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x71058800
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x20]
je 0x710586b4
test byte [0x71060108], 1
jne 0x71058690
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x710586ec
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 0x710587c0
cmp ax, 0x2f
je 0x710587c0
mov esi, dword [ebp + 0xc]
lea edx, [esi + 2]
test ax, ax
je 0x71058870
movzx eax, word [edx + 2]
lea ebx, [edx + 2]
test ax, ax
jne 0x710585b0
jmp 0x71058870
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x71058870
cmp ax, 0x5c
je 0x71058860
cmp ax, 0x2f
jne 0x710585a0
mov eax, ebx
mov dword [ebp - 0x50], edx
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
sub eax, edx
mov dword [ebp - 0x4c], eax
add eax, 2
mov dword [esp], eax
call edi
mov esi, eax
test eax, eax
je 0x710588c2
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebp - 0x4c]
xor edx, edx
mov word [esi + eax], dx
movzx eax, word [ebx + 2]
test ax, ax
je 0x71058670
lea ecx, [ebx + 2]
mov dword [ebp + 0xc], ecx
cmp ax, 0x5c
je 0x71058620
cmp ax, 0x2f
jne 0x7105843e
mov ebx, dword [ebp + 0xc]
jmp 0x71058485
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 0x71058670
movzx eax, word [edi + 2]
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
test ax, ax
jne 0x71058485
jmp 0x710587f0
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], 0x71060108
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_12
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x710586ec
test byte [0x71060108], 1
je 0x7105851c
mov dword [esp + 0xc], str.specific_locale_not_supported_n
mov dword [esp + 8], str.wbem_locator_ConnectServer
mov dword [esp + 4], 0x71060108
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_12
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x7105851c
test byte [0x71060108], 1
je 0x7105851c
mov dword [esp + 0xc], str.unsupported_flags_n
mov dword [esp + 8], str.wbem_locator_ConnectServer
mov dword [esp + 4], 0x71060108
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_12
jmp 0x7105851c
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 - 0x4c], 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 - 0x4c]
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], 0x71060108
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_12
jmp 0x71058419
mov eax, dword [ebp + 0xc]
lea edx, [eax + 4]
movzx eax, word [eax + 4]
test ax, ax
je 0x71058870
cmp ax, 0x5c
je 0x710587e3
cmp ax, 0x2f
jne 0x7105858a
mov eax, 0x80041008
jmp 0x7105854e
xor edi, edi
jmp 0x710584d1
mov dword [esp + 4], str.localhost
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp], esi
call ebx
test eax, eax
je 0x710584f5
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x3c]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetComputerNameW]
lea edx, [ebp - 0x38]
sub esp, 8
test eax, eax
jne 0x710588ac
test byte [0x71060108], 1
jne 0x7105887a
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
call ebx
mov dword [esp], edi
call ebx
mov eax, 0x80041015
jmp 0x7105854e
test ax, ax
jne 0x710585c0
lea esi, [esi]
mov eax, 0x8004100e
jmp 0x7105854e
mov dword [esp + 0xc], str.remote_computer_not_supported_n
mov dword [esp + 8], str.wbem_locator_ConnectServer
mov dword [esp + 4], 0x71060108
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_12
jmp 0x71058841
mov eax, 2
xor ebx, ebx
jmp 0x710584a6
mov dword [esp + 4], edx
mov dword [esp], esi
call ebx
test eax, eax
jne 0x71058838
jmp 0x710584f5
mov eax, 0x8007000e
jmp 0x7105854e
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8007000e
jmp 0x7105854e