Function at 0x109dc3d
Capabilities:
Get hostname

Disassembly:
push 0x20
mov eax, 0x10dfcc3
call fcn.010a0c60
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109dc7c
test byte [eax + 0x1c], 1
je 0x109dc7c
cmp byte [eax + 0x19], 5
jb 0x109dc7c
push ebx
mov edi, 0x1009c48
push edi
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
jmp 0x109dc81
mov edi, 0x1009c48
lea esi, [ebx + 0x28]
cmp dword [esi], 0
je 0x109dc90
mov ecx, esi
call fcn.01096a40
xor eax, eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x1009c58
push 0x17
push eax
push 0x1009cc8
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x10], eax
test eax, eax
jge 0x109dcfe
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109dce4
test byte [eax + 0x1c], 2
je 0x109dce4
cmp byte [eax + 0x19], 2
jb 0x109dce4
push dword [ebp - 0x10]
push edi
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
mov eax, dword [0x10ed030]
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x109df39
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x109df34
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0109c2a0
mov dword [ebp - 0x10], eax
test eax, eax
jge 0x109dd29
mov eax, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x109df34
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x109df34
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109dd4f
test byte [eax + 0x1c], 2
je 0x109dd4f
cmp byte [eax + 0x19], 5
jb 0x109dd4f
push edi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
mov ecx, ebx
call fcn.0109c49f
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x109dd0f
mov esi, 0x10f1178
push esi
lea ecx, [ebp - 0x18]
call fcn.0102847f
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.01032267
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [ebp - 0x18]
test eax, eax
je 0x109ddc1
push 0xffffffffffffffff
call fcn.0102f2bd
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109de1e
test byte [eax + 0x1c], 2
je 0x109de1e
cmp byte [eax + 0x19], 5
jb 0x109de1e
push dword [ebp - 0x18]
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e3b
jmp 0x109de1e
push 0
call fcn.01028125
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x109ddd7
mov dword [ebp - 0x10], eax
jmp 0x109dde8
mov ecx, eax
and ecx, 0xffff
or ecx, 0x80070000
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jl 0x109ddf5
mov dword [ebp - 0x10], 0x80004005
mov ecx, dword [0x10ed030]
cmp ecx, 0x10ed030
je 0x109de1e
test byte [ecx + 0x1c], 2
je 0x109de1e
cmp byte [ecx + 0x19], 2
jb 0x109de1e
push eax
push edi
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010294b2
lea ecx, [ebp - 0x18]
call fcn.0104bd22
push esi
lea ecx, [ebp - 0x14]
call fcn.0102847f
mov eax, 0x105
push eax
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.01032267
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x109de9a
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0102f2bd
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0102838b
cmp eax, 0xffffffff
je 0x109de9a
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.0105cbac
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.01028a4c
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.01028079
push esi
lea ecx, [ebp - 0x20]
call fcn.0102847f
mov ebx, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push 0x1009cb4
push eax
mov byte [ebp - 4], 4
call fcn.0102ad35
add esp, 0x10
mov eax, dword [0x10ed030]
mov esi, dword [ebp - 0x20]
cmp eax, 0x10ed030
je 0x109dee9
test byte [eax + 0x1c], 2
je 0x109dee9
cmp byte [eax + 0x19], 5
jb 0x109dee9
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.01050054
cmp dword [edi], 0
jne 0x109df03
mov dword [ebp - 0x10], 0x8007000e
lea ecx, [esi - 0x10]
call fcn.01028079
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.01028079
lea ecx, [ebx - 0x10]
call fcn.01028079
mov eax, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x109df2f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, 0x1009c48
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109df6d
test byte [eax + 0x1c], 1
je 0x109df6d
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 0x109df6d
push dword [ebp - 0x10]
push edi
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
mov eax, dword [ebp - 0x10]
call fcn.010a0d4c
ret