Function at 0x1012925
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 0x1012b67
cmp edi, ebx
je 0x1012b67
mov dword [edi], ebx
movzx eax, word [esi]
cmp ax, 2
mov dword [ebp - 0x23c], ebx
jne 0x1012971
cmp dword [esi + 4], ebx
jne 0x1012984
cmp ax, 0x17
jne 0x10129c7
lea eax, [esi + 8]
push eax
call fcn.01010185
test al, al
jne 0x10129c7
push ebx
push ebx
push 0x81
lea eax, [ebp - 0x128]
push eax
push esi
call fcn.01013f15
mov esi, eax
cmp esi, ebx
jge 0x10129ac
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
jmp 0x1012b6c
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x23c]
mov word [ebp - 0x28], bx
call fcn.010116c6
jmp 0x1012b46
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 0x10129fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10129fa
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x101299e
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.010123f1
mov esi, eax
cmp esi, ebx
lea ecx, [ebp - 0x238]
jge 0x1012a4a
call fcn.01002a06
jmp 0x101299e
call fcn.0100345b
push 4
mov edx, 0x1001fa8
mov ecx, eax
pop edi
mov si, word [ecx]
cmp si, word [edx]
jne 0x1012a7d
cmp si, bx
je 0x1012a79
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1012a7d
add ecx, edi
add edx, edi
cmp si, bx
jne 0x1012a59
xor ecx, ecx
jmp 0x1012a82
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0x1012b26
mov edx, 0x100262c
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1012ab5
cmp si, bx
je 0x1012ab1
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1012ab5
add ecx, edi
add edx, edi
cmp si, bx
jne 0x1012a91
xor ecx, ecx
jmp 0x1012aba
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0x1012b26
mov edx, 0x1002624
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1012ae9
cmp si, bx
je 0x1012ae5
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1012ae9
add ecx, edi
add edx, edi
cmp si, bx
jne 0x1012ac5
xor ecx, ecx
jmp 0x1012aee
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0x1012b26
mov edx, 0x100261c
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1012b1d
cmp si, bx
je 0x1012b19
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1012b1d
add ecx, edi
add edx, edi
cmp si, bx
jne 0x1012af9
xor ecx, ecx
jmp 0x1012b22
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x1012b29
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x23c]
call fcn.010116c6
lea ecx, [ebp - 0x238]
call fcn.01002a06
mov edi, dword [ebp - 0x240]
mov eax, dword [ebp - 0x23c]
cmp eax, ebx
jne 0x1012b5a
mov esi, 0x8007000e
jmp 0x101299e
push ebx
mov dword [edi], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x1012b6c
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100836d
leave
ret 8