Function at 0x77cbcfa0
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [eax], ebx
jne 0x77cc9cbe
mov eax, dword [ebp - 0x34]
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cbcfe4
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x77ce042c
push 0x77cbd098
push edi
push esi
call fcn.77cbd17b
test eax, eax
jl 0x77ce048d
push dword [ebp - 0x34]
push edi
push esi
call fcn.77cbd0bf
test eax, eax
jl 0x77ce048d
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x40]
push esi
push dword [ebp - 0x28]
push 0x77cbd0a8
push ebx
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, ebx
jne 0x77ce042c
mov edi, dword [ebp - 0x3c]
push edi
push dword [ebp - 0x38]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
cmp esi, ebx
jne 0x77ce049e
xor esi, esi
cmp dword [ebp - 0x30], 0
jne 0x77cc9cb0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0x10
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x77cbd083
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cc9cc3
sub eax, edx
sar eax, 1
mov edi, eax
movzx eax, word [esi]
cmp ax, bx
je 0x77ce0402
push 0x5c
pop ebx
cmp ax, bx
je 0x77ce040a
lea eax, [edi + edi + 6]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x77ce042c
lea ecx, [edi + edi + 2]
push ecx
mov word [eax], bx
mov word [eax + 2], bx
add eax, 4
push esi
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x28], eax
test esi, esi
je 0x77cbcfdc
cmp edi, 0xf
ja 0x77cc9d64
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x2c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x77cc9d64
cmp edi, dword [ebp - 0x2c]
jne 0x77cc9d64
push edi
lea eax, [ebp - 0x24]
push esi
push eax
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x77cc9d64
xor esi, esi
mov dword [ebp - 0x28], esi
test esi, esi
je 0x77cbcfdc
jmp 0x77ce0436
mov dword [ebp - 0x28], ebx
jmp 0x77cbcfdc
cmp word [esi + 2], bx
jne 0x77cc9ceb
mov dword [ebp - 0x28], esi
add esi, 4
dec edi
dec edi
jne 0x77cc9d22
mov esi, 0xc0000122
jmp 0x77cbd083
mov esi, 0xc0000017
jmp 0x77cbd079
cmp word [esi + edi*2 - 2], 0x2e
jne 0x77ce043f
dec edi
push 0x20a
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x77ce042c
lea eax, [ebp - 0x2c]
push eax
push ebx
push 3
mov dword [ebp - 0x2c], 0x105
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x77ce0481
cmp edi, dword [ebp - 0x2c]
jne 0x77ce0481
push edi
push esi
push ebx
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x77ce0481
and dword [ebp - 0x28], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x77cbcfdc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, 0xc000000d
jmp 0x77cbd079
cmp esi, 0x6aa
mov dword [edi], ebx
je 0x77ce04b4
cmp esi, 0x6ab
jne 0x77ce042c
mov esi, 0xc0000122
jmp 0x77cbd079