Function at 0x103c86b
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1040190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
mov dword [ebx], edi
cmp esi, edi
je 0x103c9d0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x103c8ac
sub eax, edx
sar eax, 1
mov edi, eax
movzx eax, word [esi]
test ax, ax
jne 0x103c8cd
and dword [ebp - 0x28], 0
jmp 0x103c9d0
cmp ax, 0x5c
jne 0x103c8ed
cmp word [esi + 2], ax
jne 0x103c8e3
mov dword [ebp - 0x28], esi
add esi, 4
dec edi
dec edi
jne 0x103c92f
mov esi, 0xc0000122
jmp 0x103ca98
lea eax, [edi + edi + 6]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
jne 0x103c90d
mov esi, 0xc0000017
jmp 0x103ca89
push 0x5c
pop eax
mov word [ebx], ax
mov word [ebx + 2], ax
lea eax, [edi + edi + 2]
push eax
lea eax, [ebx + 4]
push esi
push eax
call sub.msvcrt.dll_memcpy
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x34]
add esp, 0xc
test esi, esi
je 0x103c9d0
cmp edi, 0xf
ja 0x103c973
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov dword [ebp - 0x2c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x103c973
cmp edi, dword [ebp - 0x2c]
jne 0x103c973
push edi
lea eax, [ebp - 0x24]
push esi
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x103c973
xor esi, esi
mov dword [ebp - 0x28], esi
test esi, esi
je 0x103c9d0
cmp word [esi + edi*2 - 2], 0x2e
jne 0x103c980
dec edi
push 0x20a
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x103c903
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 0x103c9c6
cmp edi, dword [ebp - 0x2c]
jne 0x103c9c6
push edi
push esi
push ebx
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x103c9c6
and dword [ebp - 0x28], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x103c9d6
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 0x10]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x103c903
push 0x103cac0
push edi
push esi
call fcn.0103c7ea
test eax, eax
jge 0x103ca19
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, 0xc000000d
jmp 0x103ca89
push dword [ebp - 0x38]
push edi
push esi
call fcn.0103c825
test eax, eax
jl 0x103ca0b
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
push esi
push dword [ebp - 0x28]
push 0x103caac
push 0
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x103c903
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test esi, esi
je 0x103ca87
and dword [ebx], edi
cmp esi, 0x6aa
je 0x103ca80
cmp esi, 0x6ab
jne 0x103c903
mov esi, 0xc0000122
jmp 0x103ca89
xor esi, esi
cmp dword [ebp - 0x30], 0
je 0x103ca98
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010024b0
leave
ret 0x10