Function at 0x1014a51
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [ebp + 8]
or dword [ebp - 8], 0xffffffff
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
je 0x1014ab0
cmp word [eax], si
je 0x1014ab0
lea ecx, [ebp - 4]
push ecx
movzx ecx, word [ebp + 0x18]
push ecx
push dword [ebp + 0x14]
movzx ecx, word [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push eax
call fcn.010159d7
mov esi, eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x1014aa5
push 8
pop esi
jmp 0x1014d9d
mov ecx, dword [ebp + 0x1c]
mov word [ecx], ax
jmp 0x1014d9d
cmp word [ebp + 0x10], 5
mov eax, dword [ebp + 0x1c]
mov word [eax], si
jbe 0x1014acc
cmp word [ebp + 0x10], 0x34
je 0x1014acc
push 0x7c
pop esi
jmp 0x1014dc7
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x1014d99
cmp word [ebx], si
je 0x1014d99
push esi
lea eax, [ebp - 8]
push eax
push ebx
call fcn.010152fe
test eax, eax
jne 0x1014b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x709
jne 0x1014d9c
mov esi, 0x866
jmp 0x1014d9c
cmp word [ebp + 0x10], 0x34
lea eax, [ebp - 4]
push eax
jne 0x1014c08
lea eax, [ebp - 0x116]
push eax
mov dword [ebp - 4], 0x102
mov byte [ebp - 0x117], 0x5c
mov byte [ebp - 0x118], 0x5c
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x1014b50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1014d9c
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1014b59
sub eax, edx
add eax, 0x10
cmp eax, 0x104
ja 0x1014c75
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1014b77
mov esi, 0x1002630
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 4]
push eax
movsd dword es:[edi], dword [esi]
push 0
push 0
movsd dword es:[edi], dword [esi]
push 3
mov edi, 0x1002624
push edi
push dword [ebp - 8]
call fcn.01015369
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov esi, eax
cmp esi, 0x7a
jne 0x1014d9c
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
mov dword [ebp - 0x10], esi
je 0x1014c75
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 3
push edi
push dword [ebp - 8]
call fcn.01015369
test eax, eax
jne 0x1014be9
call ebx
jmp 0x1014b49
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x118]
push eax
push 0x34
mov eax, esi
call fcn.01013fc5
cmp dword [ebp + 8], 0x40
mov dword [ebp - 4], eax
jbe 0x1014c6c
jmp 0x1014c75
push esi
push esi
push 2
push dword [ebp - 8]
call fcn.010153a1
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1014c3d
call edi
mov esi, eax
cmp esi, 0x7a
jne 0x1014d9c
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1014c75
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push 2
push dword [ebp - 8]
call fcn.010153a1
test eax, eax
jne 0x1014c5c
call edi
jmp 0x1014b49
movzx eax, word [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.01013e0c
mov dword [ebp - 4], eax
mov edi, 0xffff
cmp eax, edi
jbe 0x1014c7c
push 8
jmp 0x1014d9b
movzx ebx, word [ebp + 0x18]
cmp eax, ebx
mov ecx, dword [ebp + 0x1c]
mov word [ecx], ax
ja 0x1014d56
cmp word [ebp + 0x10], 0x34
mov edx, dword [ebp + 0x14]
jne 0x1014cc9
mov ecx, eax
mov esi, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
add ebx, edx
push ebx
mov ecx, esi
mov esi, dword [ebp - 0x10]
push edx
and ecx, 3
rep stosb byte es:[edi], al
push 0x34
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call fcn.0101430a
jmp 0x1014d52
movzx eax, word [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
lea ecx, [ebx + edx]
mov dword [ebp + 8], eax
call fcn.010141aa
cmp word [ebp + 0x10], 2
je 0x1014cec
cmp word [ebp + 0x10], 4
jne 0x1014d52
xor ecx, ecx
cmp word [ebp + 0x18], di
sete cl
sub ebx, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0x10]
push ecx
push 0
push eax
mov eax, dword [ebp + 8]
push ebx
call fcn.01014182
add eax, dword [ebp + 0x14]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.010144d5
mov ecx, dword [ebp - 4]
mov esi, eax
mov eax, dword [ebp + 0x10]
lea edx, [eax + ecx]
cmp edx, edi
jbe 0x1014d36
mov eax, dword [ebp + 0x1c]
mov word [eax], di
jmp 0x1014d3e
add eax, ecx
mov ecx, dword [ebp + 0x1c]
mov word [ecx], ax
push dword [ebp - 0x14]
push 1
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.01014a1a
test esi, esi
jne 0x1014d9c
xor esi, esi
jmp 0x1014d9c
cmp word [ebp + 0x10], 2
je 0x1014d64
cmp word [ebp + 0x10], 4
jne 0x1014d87
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 8]
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.010143f4
mov esi, eax
test esi, esi
jne 0x1014d9c
mov eax, dword [ebp - 4]
add eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp edi, eax
sbb esi, esi
and esi, 0xfffff7bd
add esi, 0x84b
jmp 0x1014d9c
push 0x57
pop esi
pop ebx
cmp dword [ebp - 8], 0xffffffff
je 0x1014dab
push dword [ebp - 8]
call fcn.01015228
cmp dword [ebp - 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x1014dbc
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 0x10], 0
je 0x1014dc7
push dword [ebp - 0x10]
call edi
pop edi
mov eax, esi
pop esi
leave
ret 0x18