Function at 0x1011b04
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1016068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x240], edi
cmp esi, ebx
je 0x1011d4c
cmp edi, ebx
je 0x1011d4c
mov dword [edi], ebx
movzx eax, word [esi]
push 2
pop ecx
mov dword [ebp - 0x23c], ebx
cmp cx, ax
jne 0x1011b52
cmp dword [esi + 4], ebx
jne 0x1011b67
push 0x17
pop ecx
cmp cx, ax
jne 0x1011bac
lea eax, [esi + 8]
push eax
call fcn.0101033b
test al, al
jne 0x1011bac
push ebx
push ebx
push 0x81
lea eax, [ebp - 0x128]
push eax
push esi
call fcn.0101313a
mov esi, eax
cmp esi, ebx
jge 0x1011b8f
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
jmp 0x1011d51
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0101155c
jmp 0x1011d2b
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x244], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1011be3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1011bdf
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1011b81
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x238]
push eax
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], 0x80
mov dword [ebp - 0x234], ebx
call fcn.010115cd
mov esi, eax
cmp esi, ebx
lea ecx, [ebp - 0x238]
jge 0x1011c2f
call fcn.01002970
jmp 0x1011b81
call fcn.0100338b
push 4
mov edx, 0x1001fc0
mov ecx, eax
pop edi
mov si, word [ecx]
cmp si, word [edx]
jne 0x1011c62
cmp si, bx
je 0x1011c5e
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1011c62
add ecx, edi
add edx, edi
cmp si, bx
jne 0x1011c3e
xor ecx, ecx
jmp 0x1011c67
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0x1011d0b
mov edx, 0x1002588
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1011c9a
cmp si, bx
je 0x1011c96
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1011c9a
add ecx, edi
add edx, edi
cmp si, bx
jne 0x1011c76
xor ecx, ecx
jmp 0x1011c9f
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0x1011d0b
mov edx, 0x1002580
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1011cce
cmp si, bx
je 0x1011cca
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1011cce
add ecx, edi
add edx, edi
cmp si, bx
jne 0x1011caa
xor ecx, ecx
jmp 0x1011cd3
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0x1011d0b
mov edx, 0x1002578
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1011d02
cmp si, bx
je 0x1011cfe
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1011d02
add ecx, edi
add edx, edi
cmp si, bx
jne 0x1011cde
xor ecx, ecx
jmp 0x1011d07
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x1011d0e
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0101155c
lea ecx, [ebp - 0x238]
call fcn.01002970
mov edi, dword [ebp - 0x240]
mov eax, dword [ebp - 0x23c]
cmp eax, ebx
jne 0x1011d3f
mov esi, 0x8007000e
jmp 0x1011b81
push ebx
mov dword [edi], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x1011d51
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010082cb
leave
ret 8