Function at 0x1000d13a
Capabilities:
Get hostname

Disassembly:
sub esp, 0x84
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
push edi
mov edi, dword [esp + 0xa0]
mov ebp, 0x1ad
test esi, esi
je 0x1000d170
mov eax, dword [esi - 4]
shr eax, 1
jne 0x1000d176
push ebp
call fcn.1000c0de
xor ebx, ebx
test edi, edi
je 0x1000d385
mov eax, dword [edi - 4]
shr eax, 1
je 0x1000d385
cmp dword [0x10043dcc], ebx
jne 0x1000d1d7
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.kernel32.dll_GetComputerNameA]
test eax, eax
je 0x1000d1d7
push 0x10
push 0x10043dac
push dword [esp + 0x1c]
lea eax, [esp + 0x8c]
push eax
push ebx
push ebx
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [0x10043dcc], 1
push 0x5c
pop edx
mov eax, edi
cmp word [edi], dx
jne 0x1000d1ef
cmp word [eax + 2], bx
je 0x1000d1ef
add eax, 2
cmp word [eax], dx
je 0x1000d1e1
push eax
push 0x10043dac
call dword [sym.imp.msvcr100.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000d385
cmp dword [0x100437f0], ebx
je 0x1000d47c
lea eax, [esp + 0x40]
push eax
push esi
call dword [0x10043804]
cmp eax, 0x800401f3
jne 0x1000d229
mov eax, 0x800a01cf
push ebx
push eax
call fcn.1000c8ad
push ebx
push ebx
call dword [sym.imp.oleaut32.dll_CreateErrorInfo]
lea eax, [esp + 0x50]
push eax
push 4
lea eax, [esp + 0x88]
push eax
push 0x10
push ebx
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x68], 0x1003b1ec
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], 0x1003b16c
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], 0x1003b26c
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], 0x1003b27c
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call dword [0x100437f0]
mov esi, eax
test esi, esi
jns 0x1000d2ea
lea eax, [esp + 0x20]
push eax
call fcn.100169af
test eax, eax
jne 0x1000d2ea
mov word [esp + 0x20], ax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x40], esi
call fcn.1000c050
push ebx
push esi
call fcn.1000c8ad
mov eax, dword [esp + 0x70]
test eax, eax
js 0x1000d313
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x7c], ebx
jl 0x1000d333
test eax, eax
jns 0x1000d329
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jns 0x1000d356
cmp dword [esp + 0x64], ebx
jl 0x1000d347
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1000d2c9
cmp dword [esp + 0x64], ebx
jge 0x1000d372
mov edx, dword [esp + 0x98]
push 0xd
pop eax
mov word [edx], ax
mov eax, dword [esp + 0x54]
jmp 0x1000d4aa
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x60]
jmp 0x1000d4bd
lea eax, [esp + 0x40]
push eax
push esi
call dword [0x10043804]
test eax, eax
js 0x1000d46d
push ebx
push ebx
call dword [sym.imp.oleaut32.dll_CreateErrorInfo]
lea eax, [esp + 0x10]
push eax
push 0x1003b1ec
push 0x15
push ebx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x1000d3e0
lea eax, [esp + 0x20]
push eax
call fcn.100169af
test eax, eax
jne 0x1000d3e0
mov word [esp + 0x20], ax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x40], esi
call fcn.1000c050
push ebx
push esi
call fcn.1000c8ad
push 0x10043838
call fcn.100169af
mov eax, dword [eax + 4]
lea ecx, [esp + 0x40]
push ecx
push dword [eax + 8]
mov eax, dword [0x10043900]
call dword [eax + 0x50]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x1003b26c
push eax
call dword [ecx]
test eax, eax
js 0x1000d42d
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
mov eax, dword [esp + 0x14]
jmp 0x1000d454
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x1003b27c
push eax
call dword [ecx]
test eax, eax
js 0x1000d45a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jns 0x1000d482
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1000d3bf
lea eax, [esp + 0x10]
push eax
push esi
call fcn.100169af
test eax, eax
jns 0x1000d482
push ebp
call fcn.1000c0de
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x1003b16c
push eax
call dword [ecx]
test eax, eax
jns 0x1000d4af
mov edx, dword [esp + 0x98]
push 0xd
pop eax
mov word [edx], ax
mov eax, dword [esp + 0x10]
mov dword [edx + 8], eax
jmp 0x1000d4cd
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x98]
push 9
pop eax
mov word [edx], ax
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, edx
call fcn.10029dae
add esp, 0x84
ret 0xc