Function at 0x109d998
Capabilities:
Get hostname

Disassembly:
push 0x20
mov eax, 0x10dfa2c
call fcn.010a0b4c
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109d9d7
test byte [eax + 0x1c], 1
je 0x109d9d7
cmp byte [eax + 0x19], 5
jb 0x109d9d7
push ebx
mov edi, 0x1009b58
push edi
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
jmp 0x109d9dc
mov edi, 0x1009b58
lea esi, [ebx + 0x28]
cmp dword [esi], 0
je 0x109d9eb
mov ecx, esi
call fcn.0109695a
xor eax, eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x1009b68
push 0x17
push eax
push 0x1009bd8
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x10], eax
test eax, eax
jge 0x109da59
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109da3f
test byte [eax + 0x1c], 2
je 0x109da3f
cmp byte [eax + 0x19], 2
jb 0x109da3f
push dword [ebp - 0x10]
push edi
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov eax, dword [0x10ed030]
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x109dc94
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x109dc8f
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0109bfef
mov dword [ebp - 0x10], eax
test eax, eax
jge 0x109da84
mov eax, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x109dc8f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x109dc8f
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109daaa
test byte [eax + 0x1c], 2
je 0x109daaa
cmp byte [eax + 0x19], 5
jb 0x109daaa
push edi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
mov ecx, ebx
call fcn.0109c1fa
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x109da6a
mov esi, 0x10f1178
push esi
lea ecx, [ebp - 0x18]
call fcn.0104bdc3
push 0x10
pop ebx
lea eax, [ebp - 0x24]
push eax
push ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], ebx
call fcn.01031f2c
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [ebp - 0x18]
test eax, eax
je 0x109db1c
push 0xffffffffffffffff
call fcn.0102f001
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109db79
test byte [eax + 0x1c], 2
je 0x109db79
cmp byte [eax + 0x19], 5
jb 0x109db79
push dword [ebp - 0x18]
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e3b
jmp 0x109db79
push 0
call fcn.01028151
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x109db32
mov dword [ebp - 0x10], eax
jmp 0x109db43
mov ecx, eax
and ecx, 0xffff
or ecx, 0x80070000
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jl 0x109db50
mov dword [ebp - 0x10], 0x80004005
mov ecx, dword [0x10ed030]
cmp ecx, 0x10ed030
je 0x109db79
test byte [ecx + 0x1c], 2
je 0x109db79
cmp byte [ecx + 0x19], 2
jb 0x109db79
push eax
push edi
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01027ecb
lea ecx, [ebp - 0x18]
call fcn.0104c1f5
push esi
lea ecx, [ebp - 0x14]
call fcn.0104bdc3
mov eax, 0x105
push eax
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.01031f2c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x109dbf5
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0102f001
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.010283a7
cmp eax, 0xffffffff
je 0x109dbf5
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
dec ecx
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call fcn.0105cfcc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.01028a2a
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.010280a5
push esi
lea ecx, [ebp - 0x20]
call fcn.0104bdc3
mov ebx, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push 0x1009bc4
push eax
mov byte [ebp - 4], 4
call fcn.0102aca6
add esp, 0x10
mov eax, dword [0x10ed030]
mov esi, dword [ebp - 0x20]
cmp eax, 0x10ed030
je 0x109dc44
test byte [eax + 0x1c], 2
je 0x109dc44
cmp byte [eax + 0x19], 5
jb 0x109dc44
push esi
push edi
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e3b
mov edi, dword [ebp - 0x2c]
add edi, 0x54
push esi
mov ecx, edi
call fcn.0105050a
cmp dword [edi], 0
jne 0x109dc5e
mov dword [ebp - 0x10], 0x8007000e
lea ecx, [esi - 0x10]
call fcn.010280a5
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.010280a5
lea ecx, [ebx - 0x10]
call fcn.010280a5
mov eax, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x109dc8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, 0x1009b58
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109dcc8
test byte [eax + 0x1c], 1
je 0x109dcc8
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x10], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x109dcc8
push dword [ebp - 0x10]
push edi
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov eax, dword [ebp - 0x10]
call fcn.010a0c38
ret