Function at 0x10247d9
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 0x1024834
test byte [eax + 0x1c], 4
je 0x1024834
cmp byte [eax + 0x19], 5
jb 0x1024834
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 0x1024847
mov dword [ebp - 0x28], eax
mov eax, 0x1001ccc
jmp 0x102489b
cmp esi, eax
je 0x1024896
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10248f5
lea eax, [ebp - 0x24]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10248ec
cmp word [esi], 0x5c
jne 0x1024893
cmp word [esi + 2], 0x5c
jne 0x1024893
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 0x10248ec
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 0x102492c
mov ecx, dword [0x1075004]
cmp ecx, edi
je 0x10248e2
test byte [ecx + 0x1c], 4
je 0x10248e2
cmp byte [ecx + 0x19], 2
jb 0x10248e2
push eax
push 0x1001d68
push 0x50
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
mov eax, 0xc0000017
jmp 0x1024a5a
mov dword [ebp - 0x28], 0x1001dec
jmp 0x1024896
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x1024925
test byte [eax + 0x1c], 4
je 0x1024925
cmp byte [eax + 0x19], 2
jb 0x1024925
push esi
push 0x1001d68
push 0x4f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, esi
jmp 0x1024a5a
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 0x1024a12
mov eax, dword [ebx]
cmp eax, esi
je 0x1024a12
cmp dword [ebp + 0x10], esi
jne 0x10249c0
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 0x10249be
mov eax, dword [0x1075004]
cmp eax, edi
je 0x10249af
test byte [eax + 0x1c], 4
je 0x10249af
cmp byte [eax + 0x19], 2
jb 0x10249af
push esi
push 0x1001d68
push 0x52
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push ebx
call dword [sym.imp.RPCRT4.dll_RpcBindingFree]
and dword [ebx], 0
jmp 0x1024925
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 0x1024a0e
mov eax, dword [0x1075004]
cmp eax, edi
je 0x1024a00
test byte [eax + 0x1c], 4
je 0x1024a00
cmp byte [eax + 0x19], 2
jb 0x1024a00
push dword [ebp - 0x28]
push 0x1001d68
push 0x53
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push ebx
call dword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov eax, dword [ebp - 0x28]
mov dword [ebx], esi
jmp 0x1024a5a
xor eax, eax
jmp 0x1024a5a
mov eax, dword [0x1075004]
cmp eax, edi
je 0x1024a3c
test byte [eax + 0x1c], 4
je 0x1024a3c
cmp byte [eax + 0x19], 2
jb 0x1024a3c
push dword [ebp - 0x28]
push 0x1001d68
push 0x51
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
cmp dword [ebp - 0x28], 0x6aa
mov dword [ebx], esi
je 0x1024a55
cmp dword [ebp - 0x28], 0x6ab
mov eax, 0xc0000017
jne 0x1024a5a
mov eax, 0x4ba
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 0x10