Function at 0x101291b
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1017068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x240], edi
je 0x1012b5d
cmp edi, ebx
je 0x1012b5d
mov dword [edi], ebx
movzx eax, word [esi]
cmp ax, 2
mov dword [ebp - 0x23c], ebx
jne 0x1012967
cmp dword [esi + 4], ebx
jne 0x101297a
cmp ax, 0x17
jne 0x10129bd
lea eax, [esi + 8]
push eax
call fcn.01010196
test al, al
jne 0x10129bd
push ebx
push ebx
push 0x81
lea eax, [ebp - 0x128]
push eax
push esi
call fcn.01013f0b
mov esi, eax
cmp esi, ebx
jge 0x10129a2
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
jmp 0x1012b62
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x23c]
mov word [ebp - 0x28], bx
call fcn.010116bc
jmp 0x1012b3c
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x244], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x10129f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10129f0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1012994
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x238]
push eax
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], 0x80
mov dword [ebp - 0x234], ebx
call fcn.010123e7
mov esi, eax
cmp esi, ebx
lea ecx, [ebp - 0x238]
jge 0x1012a40
call fcn.01002a06
jmp 0x1012994
call fcn.0100345b
push 4
mov edx, 0x1001fc8
mov ecx, eax
pop edi
mov si, word [ecx]
cmp si, word [edx]
jne 0x1012a73
cmp si, bx
je 0x1012a6f
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1012a73
add ecx, edi
add edx, edi
cmp si, bx
jne 0x1012a4f
xor ecx, ecx
jmp 0x1012a78
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0x1012b1c
mov edx, 0x100262c
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1012aab
cmp si, bx
je 0x1012aa7
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1012aab
add ecx, edi
add edx, edi
cmp si, bx
jne 0x1012a87
xor ecx, ecx
jmp 0x1012ab0
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0x1012b1c
mov edx, 0x1002624
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1012adf
cmp si, bx
je 0x1012adb
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1012adf
add ecx, edi
add edx, edi
cmp si, bx
jne 0x1012abb
xor ecx, ecx
jmp 0x1012ae4
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0x1012b1c
mov edx, 0x100261c
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1012b13
cmp si, bx
je 0x1012b0f
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1012b13
add ecx, edi
add edx, edi
cmp si, bx
jne 0x1012aef
xor ecx, ecx
jmp 0x1012b18
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x1012b1f
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x23c]
call fcn.010116bc
lea ecx, [ebp - 0x238]
call fcn.01002a06
mov edi, dword [ebp - 0x240]
mov eax, dword [ebp - 0x23c]
cmp eax, ebx
jne 0x1012b50
mov esi, 0x8007000e
jmp 0x1012994
push ebx
mov dword [edi], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x1012b62
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008397
leave
ret 8