Function at 0x10168b9
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
or dword [ebp - 0x110], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x14]
xor edx, edx
xor ecx, ecx
push esi
mov dword [ebp - 0x124], eax
mov word [eax], dx
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x10c], ecx
cmp eax, ecx
je 0x101691a
cmp word [eax], cx
je 0x101691a
push 0x32
pop esi
jmp 0x1016cd0
cmp word [ebp + 0x10], 5
jbe 0x101692c
cmp word [ebp + 0x10], 0x34
je 0x101692c
push 0x7c
jmp 0x1016914
cmp edi, ecx
je 0x1016c91
cmp word [edi], cx
je 0x1016c91
push ecx
lea eax, [ebp - 0x110]
push eax
push edi
call fcn.0101739f
test eax, eax
jne 0x101696d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x709
jne 0x1016c94
mov esi, 0x866
jmp 0x1016c94
cmp word [ebp + 0x10], 0x34
lea eax, [ebp - 0x10c]
push eax
jne 0x1016a87
lea eax, [ebp - 0x106]
push eax
mov dword [ebp - 0x10c], 0x102
mov byte [ebp - 0x107], 0x5c
mov byte [ebp - 0x108], 0x5c
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x10169b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1016c94
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10169be
sub eax, edx
lea ecx, [eax + 0x10]
mov eax, 0x104
cmp ecx, eax
jbe 0x10169da
push 8
jmp 0x1016c93
push 0x1016ce4
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.01016297
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 3
mov edi, 0x1003bec
push edi
push dword [ebp - 0x110]
call fcn.010173ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x7a
jne 0x1016c94
push dword [ebp - 0x10c]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x120], esi
test esi, esi
je 0x10169d3
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x10c]
push esi
push 3
push edi
push dword [ebp - 0x110]
call fcn.010173ee
test eax, eax
je 0x10169a8
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push 0x34
call fcn.01015c68
cmp dword [ebp - 0x11c], 0x40
mov dword [ebp - 0x10c], eax
ja 0x10169d3
jmp 0x1016b08
push 0
push 0
push 2
push dword [ebp - 0x110]
call fcn.0101743f
test eax, eax
jne 0x1016ac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x7a
jne 0x1016c94
push dword [ebp - 0x10c]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x118], eax
test eax, eax
je 0x10169d3
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x10c]
push dword [ebp - 0x118]
push 2
push dword [ebp - 0x110]
call fcn.0101743f
test eax, eax
je 0x10169a8
push dword [ebp - 0x118]
movzx eax, word [ebp + 0x10]
push edi
push eax
call fcn.01015a8b
mov dword [ebp - 0x10c], eax
mov edi, 0xffff
cmp eax, edi
ja 0x10169d3
movzx esi, word [ebp + 0x18]
mov ecx, dword [ebp - 0x124]
mov word [ecx], ax
cmp eax, esi
ja 0x1016c3c
cmp word [ebp + 0x10], 0x34
jne 0x1016b60
push eax
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
add esi, ebx
push esi
push ebx
push 0x34
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
call fcn.01015e4f
jmp 0x1016c38
movzx eax, word [ebp + 0x10]
lea ecx, [esi + ebx]
push ecx
push dword [ebp - 0x114]
mov dword [ebp - 0x11c], eax
push ebx
push eax
push dword [ebp - 0x118]
call fcn.01016529
cmp word [ebp + 0x10], 2
mov dword [ebp - 0x12c], eax
je 0x1016b99
cmp word [ebp + 0x10], 4
jne 0x1016c38
push dword [ebp - 0x11c]
call fcn.01015e16
sub esi, dword [ebp - 0x10c]
cmp eax, esi
jbe 0x1016bb8
mov esi, 0x84b
jmp 0x1016c94
xor edx, edx
mov ecx, edi
cmp word [ebp + 0x18], cx
lea ecx, [ebp - 0x128]
sete dl
add eax, ebx
push edx
push ecx
lea ecx, [ebp - 0x114]
push ecx
push 0
push dword [ebp - 0x12c]
push esi
push eax
push dword [ebp - 0x110]
push dword [ebp - 0x11c]
push dword [ebp - 0x114]
call fcn.010166f9
mov ecx, dword [ebp - 0x10c]
mov esi, eax
mov eax, dword [ebp - 0x114]
lea edx, [eax + ecx]
cmp edx, edi
jbe 0x1016c15
mov eax, dword [ebp - 0x124]
mov word [eax], di
jmp 0x1016c20
add eax, ecx
mov ecx, dword [ebp - 0x124]
mov word [ecx], ax
push dword [ebp - 0x128]
push 1
push ebx
push dword [ebp - 0x11c]
call fcn.0101617f
test esi, esi
jne 0x1016c94
xor esi, esi
jmp 0x1016c94
cmp word [ebp + 0x10], 2
je 0x1016c4a
cmp word [ebp + 0x10], 4
jne 0x1016c7f
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x110]
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp - 0x114]
call fcn.01016081
mov esi, eax
test esi, esi
jne 0x1016c94
mov eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x10c], eax
cmp edi, eax
sbb esi, esi
and esi, 0xfffff7bd
add esi, 0x84b
jmp 0x1016c94
push 0x57
pop esi
cmp dword [ebp - 0x110], 0xffffffff
je 0x1016ca8
push dword [ebp - 0x110]
call fcn.01017307
cmp dword [ebp - 0x118], 0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x1016cbf
push dword [ebp - 0x118]
call edi
cmp dword [ebp - 0x120], 0
je 0x1016cd0
push dword [ebp - 0x120]
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002d45
leave
ret 0x18