Function at 0x10243c9
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1075fb8]
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
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0x1001dec
mov dword [ebp - 0x30], 0x10
mov eax, dword [0x1075004]
mov edi, 0x1075004
cmp eax, edi
je 0x1024424
test byte [eax + 0x1c], 4
je 0x1024424
cmp byte [eax + 0x19], 5
jb 0x1024424
push 0x1001d68
push 0x4e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
xor eax, eax
mov dword [ebx], eax
cmp dword [ebp + 0x10], eax
je 0x1024437
mov dword [ebp - 0x28], eax
mov eax, 0x1001ccc
jmp 0x102448b
cmp esi, eax
je 0x1024486
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10244e5
lea eax, [ebp - 0x24]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10244dc
cmp word [esi], 0x5c
jne 0x1024483
cmp word [esi + 2], 0x5c
jne 0x1024483
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10244dc
mov dword [ebp - 0x28], esi
mov eax, 0x1001dd0
lea ecx, [ebp - 0x2c]
push ecx
push 0x1001768
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
xor esi, esi
cmp eax, esi
je 0x102451c
mov ecx, dword [0x1075004]
cmp ecx, edi
je 0x10244d2
test byte [ecx + 0x1c], 4
je 0x10244d2
cmp byte [ecx + 0x19], 2
jb 0x10244d2
push eax
push 0x1001d68
push 0x50
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
mov eax, 0xc0000017
jmp 0x102464a
mov dword [ebp - 0x28], 0x1001dec
jmp 0x1024486
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x1024515
test byte [eax + 0x1c], 4
je 0x1024515
cmp byte [eax + 0x19], 2
jb 0x1024515
push esi
push 0x1001d68
push 0x4f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, esi
jmp 0x102464a
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
cmp dword [ebp - 0x28], esi
jne 0x1024602
mov eax, dword [ebx]
cmp eax, esi
je 0x1024602
cmp dword [ebp + 0x10], esi
jne 0x10245b0
lea ecx, [ebp - 0x44]
push ecx
push esi
push esi
push 0xa
push 6
push esi
push eax
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 2
call dword [sym.imp.RPCRT4.dll_RpcBindingSetAuthInfoExW]
mov esi, eax
test esi, esi
je 0x10245ae
mov eax, dword [0x1075004]
cmp eax, edi
je 0x102459f
test byte [eax + 0x1c], 4
je 0x102459f
cmp byte [eax + 0x19], 2
jb 0x102459f
push esi
push 0x1001d68
push 0x52
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push ebx
call dword [sym.imp.RPCRT4.dll_RpcBindingFree]
and dword [ebx], 0
jmp 0x1024515
xor esi, esi
push 0x7530
push 0xc
push dword [ebx]
call dword [sym.imp.RPCRT4.dll_RpcBindingSetOption]
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x10245fe
mov eax, dword [0x1075004]
cmp eax, edi
je 0x10245f0
test byte [eax + 0x1c], 4
je 0x10245f0
cmp byte [eax + 0x19], 2
jb 0x10245f0
push dword [ebp - 0x28]
push 0x1001d68
push 0x53
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push ebx
call dword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov eax, dword [ebp - 0x28]
mov dword [ebx], esi
jmp 0x102464a
xor eax, eax
jmp 0x102464a
mov eax, dword [0x1075004]
cmp eax, edi
je 0x102462c
test byte [eax + 0x1c], 4
je 0x102462c
cmp byte [eax + 0x19], 2
jb 0x102462c
push dword [ebp - 0x28]
push 0x1001d68
push 0x51
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
cmp dword [ebp - 0x28], 0x6aa
mov dword [ebx], esi
je 0x1024645
cmp dword [ebp - 0x28], 0x6ab
mov eax, 0xc0000017
jne 0x102464a
mov eax, 0x4ba
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 0x10