Function at 0x10216ece
Capabilities:
Get hostname

Disassembly:
sub esp, 0x84
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
push edi
mov edi, dword [esp + 0xa0]
mov ebp, 0x1ad
test esi, esi
je 0x10216f04
mov eax, dword [esi - 4]
shr eax, 1
jne 0x10216f0a
push ebp
call fcn.10089e37
xor ebx, ebx
test edi, edi
je 0x10217119
mov eax, dword [edi - 4]
shr eax, 1
je 0x10217119
cmp dword [0x10244f58], ebx
jne 0x10216f6b
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.kernel32.dll_GetComputerNameA]
test eax, eax
je 0x10216f6b
push 0x10
push 0x10244f38
push dword [esp + 0x1c]
lea eax, [esp + 0x8c]
push eax
push ebx
push ebx
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [0x10244f58], 1
push 0x5c
pop edx
mov eax, edi
cmp word [edi], dx
jne 0x10216f83
cmp word [eax + 2], bx
je 0x10216f83
add eax, 2
cmp word [eax], dx
je 0x10216f75
push eax
push 0x10244f38
call dword [sym.imp.msvcr100.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10217119
cmp dword [0x102418c4], ebx
je 0x10217213
lea eax, [esp + 0x40]
push eax
push esi
call dword [0x102418c8]
cmp eax, 0x800401f3
jne 0x10216fbd
mov eax, 0x800a01cf
push ebx
push eax
call fcn.10014606
push ebx
push ebx
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
lea eax, [esp + 0x50]
push eax
push 4
lea eax, [esp + 0x88]
push eax
push 0x10
push ebx
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x68], 0x1000cf2c
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], 0x1000cec8
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], 0x1007bee0
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], 0x1007bef0
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call dword [0x102418c4]
mov esi, eax
test esi, esi
jns 0x1021707e
lea eax, [esp + 0x20]
push eax
call fcn.1015692e
test eax, eax
jne 0x1021707e
mov word [esp + 0x20], ax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x40], esi
call fcn.100c0659
push ebx
push esi
call fcn.10014606
mov eax, dword [esp + 0x70]
test eax, eax
js 0x102170a7
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x7c], ebx
jl 0x102170c7
test eax, eax
jns 0x102170bd
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jns 0x102170ea
cmp dword [esp + 0x64], ebx
jl 0x102170db
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1021705d
cmp dword [esp + 0x64], ebx
jge 0x10217106
mov edx, dword [esp + 0x98]
push 0xd
pop eax
mov word [edx], ax
mov eax, dword [esp + 0x54]
jmp 0x10217241
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x60]
jmp 0x10217254
lea eax, [esp + 0x40]
push eax
push esi
call dword [0x102418c8]
test eax, eax
js 0x10217204
push ebx
push ebx
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
lea eax, [esp + 0x10]
push eax
push 0x1000cf2c
push 0x15
push ebx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x10217174
lea eax, [esp + 0x20]
push eax
call fcn.1015692e
test eax, eax
jne 0x10217174
mov word [esp + 0x20], ax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x40], esi
call fcn.100c0659
push ebx
push esi
call fcn.10014606
push 0x10239168
call fcn.100036a0
mov eax, dword [eax + 4]
lea ecx, [esp + 0x40]
push ecx
push dword [eax + 8]
mov eax, dword [0x102390a8]
call dword [eax + 0x14c]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x1007bee0
push eax
call dword [ecx]
test eax, eax
js 0x102171c4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
mov eax, dword [esp + 0x14]
jmp 0x102171eb
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x1007bef0
push eax
call dword [ecx]
test eax, eax
js 0x102171f1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jns 0x10217219
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10217153
lea eax, [esp + 0x10]
push eax
push esi
call fcn.1015692e
test eax, eax
jns 0x10217219
push ebp
call fcn.10089e37
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x1000cec8
push eax
call dword [ecx]
test eax, eax
jns 0x10217246
mov edx, dword [esp + 0x98]
push 0xd
pop eax
mov word [edx], ax
mov eax, dword [esp + 0x10]
mov dword [edx + 8], eax
jmp 0x10217264
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x98]
push 9
pop eax
mov word [edx], ax
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, edx
call fcn.10001e57
add esp, 0x84
ret 0xc