Function at 0x105a207
Capabilities:
Get hostname

Disassembly:
push 0x108
mov eax, 0x106f3a0
call fcn.0105b971
mov eax, dword [ebp + 0x10]
and dword [ebp - 0xc4], 0
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0x1c]
mov edi, ecx
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0x104], eax
mov eax, dword [0x1075004]
mov esi, 0x1075004
cmp eax, esi
je 0x105a26f
test byte [eax + 0x1c], 4
je 0x105a26f
cmp byte [eax + 0x19], 5
jb 0x105a26f
mov ebx, 0x1004e38
push ebx
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x105a274
mov ebx, 0x1004e38
push 0x1025904
push fcn.01028929
push 3
push 0x1c
lea eax, [ebp - 0xc0]
push eax
call fcn.0105bbf7
and dword [ebp - 4], 0
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x100], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x105a2f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105adaa
test byte [eax + 0x1c], 4
je 0x105adaa
cmp byte [eax + 0x19], 2
jb 0x105adaa
push dword [ebp - 0xc4]
push ebx
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x105adaa
lea ecx, [ebp - 0x6c]
call fcn.01028929
cmp dword [ebp + 0xc], 0
jne 0x105a5ae
mov ecx, dword [edi + 0x15c]
lea eax, [ebp - 0xc0]
push eax
add ecx, 0x108
mov byte [ebp - 4], 1
call fcn.01058ba7
test eax, eax
je 0x105a573
lea eax, [ebp - 0xa4]
push eax
lea ecx, [edi + 0x380]
call fcn.01058ba7
test eax, eax
je 0x105a573
lea eax, [ebp - 0x88]
push eax
lea ecx, [edi + 0x388]
call fcn.01058ba7
test eax, eax
je 0x105a573
cmp dword [ebp + 8], 0
je 0x105a3f2
cmp dword [ebp - 0xa8], 8
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc8], 0x4000100b
jae 0x105a396
lea eax, [ebp - 0xbc]
cmp dword [ebp - 0x8c], 8
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xa0]
jae 0x105a3ba
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0x70], 8
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x84]
jae 0x105a3d2
lea eax, [ebp - 0x84]
mov dword [ebp - 0xe8], eax
mov eax, dword [edi + 0x160]
mov dword [ebp - 0xe4], eax
mov eax, dword [edi + 0x30]
mov dword [ebp - 0xe0], eax
jmp 0x105a4ce
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0xc8], 0x4000100c
call fcn.01058e30
test eax, eax
jne 0x105a445
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105a43e
test byte [eax + 0x1c], 4
je 0x105a43e
cmp byte [eax + 0x19], 2
jb 0x105a43e
push dword [ebp - 0xc4]
push ebx
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push 0
jmp 0x105ada0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xbc]
push 8
mov dword [ebp - 0xf8], eax
pop eax
cmp dword [ebp - 0xa8], eax
jae 0x105a468
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xf4], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xf0], ecx
mov ecx, dword [ebp - 0xa0]
cmp dword [ebp - 0x8c], eax
jae 0x105a48b
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xec], ecx
mov ecx, dword [ebp - 0x84]
cmp dword [ebp - 0x70], eax
jae 0x105a4a2
lea ecx, [ebp - 0x84]
cmp dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xe8], ecx
mov ecx, dword [edi + 0x160]
mov dword [ebp - 0xe4], ecx
mov ecx, dword [edi + 0x30]
mov dword [ebp - 0xe0], ecx
jae 0x105a4c8
lea eax, [ebp - 0x68]
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xf8]
push eax
xor edi, edi
push edi
push dword [ebp - 0xfc]
push 0x800
push dword [ebp - 0xc8]
push dword [0x1077f10]
push 0x2900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp eax, edi
jne 0x105a544
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105ad9f
test byte [eax + 0x1c], 4
je 0x105ad9f
cmp byte [eax + 0x19], 2
jb 0x105ad9f
push dword [ebp - 0xc4]
push ebx
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x105ad9f
push edi
push 1
lea ecx, [ebp - 0x6c]
call fcn.01025760
or dword [ebp - 4], 0xffffffff
push 0x1025904
push 3
push 0x1c
lea eax, [ebp - 0xc0]
push eax
call fcn.0105bb8f
xor eax, eax
inc eax
call fcn.0105b9dc
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105a43e
test byte [eax + 0x1c], 4
je 0x105a43e
cmp byte [eax + 0x19], 2
jb 0x105a43e
push dword [ebp - 0xc4]
push ebx
push 0x28
jmp 0x105a433
lea ecx, [ebp - 0x50]
call fcn.01028929
and dword [ebp - 0xcc], 0
and dword [ebp - 0xc8], 0
lea eax, [ebp - 0xc0]
push eax
lea ecx, [edi + 0x108]
mov byte [ebp - 4], 3
call fcn.01058ba7
test eax, eax
jne 0x105a624
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105a613
test byte [eax + 0x1c], 4
je 0x105a613
cmp byte [eax + 0x19], 2
jb 0x105a613
push dword [ebp - 0xc4]
push ebx
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.01025760
jmp 0x105a43e
cmp dword [ebp + 8], 0
je 0x105a63b
mov eax, 0x4000100d
mov dword [ebp - 0xd4], 0x40001014
jmp 0x105a64a
mov eax, 0x4000100e
mov dword [ebp - 0xd4], 0x40001015
cmp dword [ebp - 0xa8], 8
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xf8], ecx
mov ecx, dword [ebp - 0xbc]
jae 0x105a66b
lea ecx, [ebp - 0xbc]
mov esi, dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov dword [ebp - 0xf4], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xf0], ecx
mov ecx, dword [ebp - 0xd0]
mov ecx, dword [ecx + 0x30]
mov dword [ebp - 0xec], ecx
lea ecx, [ebp - 0xf8]
push ecx
push 0
lea ecx, [ebp - 0xcc]
push ecx
mov ebx, 0x800
push ebx
push eax
push dword [0x1077f10]
mov edi, 0x2900
push edi
call esi
test eax, eax
jne 0x105a6fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105a613
test byte [eax + 0x1c], 4
je 0x105a613
cmp byte [eax + 0x19], 2
jb 0x105a613
push dword [ebp - 0xc4]
push 0x1004e38
push 0x2c
jmp 0x105a608
lea eax, [ebp - 0xf8]
push eax
push 0
lea eax, [ebp - 0xc8]
push eax
push ebx
push dword [ebp - 0xd4]
push dword [0x1077f10]
push edi
call esi
test eax, eax
jne 0x105a781
xor esi, esi
cmp dword [ebp - 0xcc], esi
je 0x105a734
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105a770
test byte [eax + 0x1c], 4
je 0x105a770
cmp byte [eax + 0x19], 2
jb 0x105a770
push dword [ebp - 0xc4]
push 0x1004e38
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push esi
push 1
lea ecx, [ebp - 0x50]
call fcn.01025760
push esi
jmp 0x105ada0
push dword [ebp - 0xcc]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.01028d85
push 0x10051e8
lea ecx, [ebp - 0x50]
call fcn.01028d58
mov esi, 0x1004fd4
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
push 0x10051d8
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
push 0x1005150
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
push 0x100513c
lea ecx, [ebp - 0x50]
call fcn.01028d58
push 0x1f7b
call fcn.01048b2c
push eax
lea ecx, [ebp - 0x50]
call fcn.01028d58
push 0x1005128
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
push 0x1005118
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
push 0x1005108
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
push 0x1005100
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
push dword [ebp - 0xc8]
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
push 0x10050f4
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
xor edi, edi
mov dword [ebp - 4], 3
cmp dword [ebp - 0xcc], edi
je 0x105a89c
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc8], edi
je 0x105a8b0
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x1005100
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
mov ebx, dword [ebp - 0xd0]
cmp dword [ebx + 0xe0], edi
je 0x105a9b3
push 0x1005098
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
lea ecx, [ebp - 0x50]
call fcn.010591c8
test eax, eax
jne 0x105a94d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105ad94
test byte [eax + 0x1c], 4
je 0x105ad94
cmp byte [eax + 0x19], 2
jb 0x105ad94
push dword [ebp - 0xc4]
push 0x1004e38
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x105ad94
mov eax, ebx
add eax, 0x90
mov ebx, dword [eax]
jmp 0x105a98a
mov eax, dword [ebx + 8]
cmp dword [eax + 0x5e8], 0x100
jne 0x105a97d
lea ecx, [ebp - 0x6c]
push ecx
push edi
push eax
lea ecx, [ebp - 0x50]
call fcn.010591c8
test eax, eax
je 0x105aa44
mov eax, dword [ebp - 0xd0]
mov ebx, dword [ebx]
add eax, 0x90
cmp ebx, eax
jne 0x105a958
push esi
lea ecx, [ebp - 0x6c]
call fcn.01028d58
push 0x1005080
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
mov ebx, dword [ebp - 0xd0]
cmp dword [ebx + 0xe8], edi
je 0x105aae8
push 0x1004fd8
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
push 0x1005098
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
lea eax, [ebp - 0x6c]
push eax
push 1
push edi
lea ecx, [ebp - 0x50]
call fcn.010591c8
test eax, eax
jne 0x105aa86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105ad94
test byte [eax + 0x1c], 4
je 0x105ad94
cmp byte [eax + 0x19], 2
jb 0x105ad94
push dword [ebp - 0xc4]
push 0x1004e38
push 0x30
jmp 0x105a93d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105ad94
test byte [eax + 0x1c], 4
je 0x105ad94
cmp byte [eax + 0x19], 2
jb 0x105ad94
push dword [ebp - 0xc4]
push 0x1004e38
push 0x2f
jmp 0x105a93d
mov eax, dword [ebp - 0xd0]
add eax, 0x90
mov ebx, dword [eax]
jmp 0x105aac8
mov eax, dword [ebx + 8]
cmp dword [eax + 0x5e8], 0x80
jne 0x105aabb
lea ecx, [ebp - 0x6c]
push ecx
push 1
push eax
lea ecx, [ebp - 0x50]
call fcn.010591c8
test eax, eax
je 0x105ab42
mov eax, dword [ebp - 0xd0]
mov ebx, dword [ebx]
add eax, 0x90
cmp ebx, eax
jne 0x105aa95
push 0x1005080
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
mov ebx, dword [ebp - 0xd0]
push 0x10050f4
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
cmp dword [ebp + 0x14], edi
je 0x105ac04
cmp dword [ebx + 0x80], edi
je 0x105ac04
push 0x1005078
lea ecx, [ebp - 0x6c]
call fcn.01028d58
push 0x1005100
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
cmp dword [ebx + 0x34], edi
jne 0x105ab84
push 0x1f7a
jmp 0x105ab89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105ad94
test byte [eax + 0x1c], 4
je 0x105ad94
cmp byte [eax + 0x19], 2
jb 0x105ad94
push dword [ebp - 0xc4]
push 0x1004e38
push 0x31
jmp 0x105a93d
push 0x1f79
call fcn.01048b2c
mov ebx, eax
cmp ebx, edi
jne 0x105abca
push edi
push 1
lea ecx, [ebp - 0x50]
call fcn.01025760
push edi
push 1
lea ecx, [ebp - 0x6c]
call fcn.01025760
or dword [ebp - 4], 0xffffffff
push 0x1025904
push 3
push 0x1c
lea eax, [ebp - 0xc0]
push eax
call fcn.0105bb8f
xor eax, eax
jmp 0x105a56b
push ebx
lea ecx, [ebp - 0x6c]
call fcn.01028d58
push ebx
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
push 0x10050f4
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x6c]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
push 0x1005068
lea ecx, [ebp - 0x50]
call fcn.01028d58
push esi
lea ecx, [ebp - 0x50]
call fcn.01028d58
push 0x1005058
lea ecx, [ebp - 0x50]
call fcn.01028d58
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ecx + ecx + 2]
push edi
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], ecx
call esi
mov ebx, dword [ebp - 0xfc]
mov dword [ebx], eax
cmp eax, edi
jne 0x105ac99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105ad94
test byte [eax + 0x1c], 4
je 0x105ad94
cmp byte [eax + 0x19], 2
jb 0x105ad94
push dword [ebp - 0xc4]
push 0x1004e38
push 0x32
jmp 0x105a93d
push dword [ebp - 0xd4]
push edi
call esi
mov esi, dword [ebp - 0x104]
mov dword [esi], eax
cmp eax, edi
jne 0x105acfb
cmp dword [ebx], edi
je 0x105acb9
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105ad94
test byte [eax + 0x1c], 4
je 0x105ad94
cmp byte [eax + 0x19], 2
jb 0x105ad94
push dword [ebp - 0xc4]
push 0x1004e38
push 0x33
jmp 0x105a93d
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
jae 0x105ad07
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0xd8]
push dword [ebx]
call fcn.0101e80b
cmp eax, edi
jge 0x105ad3d
mov ecx, dword [0x1075004]
cmp ecx, 0x1075004
je 0x105ad88
test byte [ecx + 0x1c], 4
je 0x105ad88
cmp byte [ecx + 0x19], 2
jb 0x105ad88
push eax
push 0x1004e38
push 0x34
jmp 0x105ad7d
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x105ad49
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0xd4]
push dword [esi]
call fcn.0101e80b
cmp eax, edi
jge 0x105ad94
mov ecx, dword [0x1075004]
cmp ecx, 0x1075004
je 0x105ad88
test byte [ecx + 0x1c], 4
je 0x105ad88
cmp byte [ecx + 0x19], 2
jb 0x105ad88
push eax
push 0x1004e38
push 0x35
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
call ebx
push esi
call ebx
push edi
push 1
lea ecx, [ebp - 0x50]
call fcn.01025760
push edi
push 1
lea ecx, [ebp - 0x6c]
call fcn.01025760
cmp dword [ebp - 0xc4], 0
je 0x105a54f
push dword [ebp - 0xc4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x105abaa