Function at 0x1021261
Capabilities:
Get hostname

Disassembly:
mov eax, 0x1025098
call fcn.0101d5b8
sub esp, 0x18
mov eax, dword [0x1029044]
push ebx
mov ebx, 0x1029044
cmp eax, ebx
push esi
push edi
je 0x10212a8
test byte [eax + 0x1c], 1
je 0x10212a8
cmp byte [eax + 0x19], 5
jb 0x10212a8
mov ecx, dword [ebp + 8]
push dword [ecx]
mov edi, 0x1002358
push edi
push 0x82
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a8ea
jmp 0x10212ad
mov edi, 0x1002358
and dword [ebp - 0x18], 0
mov esi, 0x1029278
push esi
lea ecx, [ebp - 0x14]
call fcn.0101e4ea
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.0101e4ea
push 0x10
pop eax
lea ecx, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], eax
call fcn.0101443e
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
lea ecx, [ebp - 0x14]
je 0x1021323
push 0xffffffffffffffff
call fcn.0101401c
mov eax, dword [0x1029044]
cmp eax, ebx
je 0x102137f
test byte [eax + 0x1c], 2
je 0x102137f
cmp byte [eax + 0x19], 5
jb 0x102137f
push dword [ebp - 0x14]
push edi
push 0x83
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a8ea
jmp 0x102137f
push 0
call fcn.0100343d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [ebp - 0x1c], eax
call fcn.01002cff
test eax, eax
mov dword [ebp - 0x18], eax
jl 0x1021347
mov dword [ebp - 0x18], 0x80004005
mov eax, dword [0x1029044]
cmp eax, ebx
je 0x1021375
test byte [eax + 0x1c], 2
je 0x1021375
cmp byte [eax + 0x19], 2
jb 0x1021375
push dword [ebp - 0x1c]
push edi
push 0x84
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
mov eax, dword [0x1029044]
cmp dword [ebp - 0x18], 0
jl 0x1021574
push 0x1002510
lea ecx, [ebp - 0x20]
call fcn.01006444
push esi
lea ecx, [ebp - 0x1c]
call fcn.0101e4ea
mov eax, 0x100174c
push eax
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.0102122f
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax - 0xc]
add esp, 0x10
push 0x3f
pop esi
mov ecx, esi
sub ecx, eax
jns 0x10213c2
xor esi, esi
jmp 0x10213c4
sub esi, eax
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0100c732
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.01004439
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.01003026
mov eax, dword [0x1029044]
cmp eax, ebx
je 0x1021417
test byte [eax + 0x1c], 2
je 0x1021417
cmp byte [eax + 0x19], 5
jb 0x1021417
push esi
push dword [ebp - 0x14]
push edi
push 0x85
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ddef
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.01004439
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x1021438
push 0x1002504
lea ecx, [ebp - 0x10]
call fcn.01004578
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ecx - 0xc]
mov eax, dword [eax - 0xc]
push 0x3f
pop edi
mov edx, edi
sub edx, ecx
sub edx, eax
jns 0x1021453
xor edi, edi
jmp 0x1021457
sub edi, ecx
sub edi, eax
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0100c732
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.01004439
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.01003026
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x10214c6
dec eax
push eax
lea ecx, [ebp - 0x10]
call fcn.0101eaed
cmp ax, 0x3a
je 0x10214c6
mov eax, dword [esi - 0xc]
cmp eax, 1
je 0x10214b4
add eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x10]
call fcn.0101eaed
cmp ax, 0x3a
je 0x10214c6
mov esi, dword [esi - 0xc]
push 0x3a
dec esi
push esi
lea ecx, [ebp - 0x10]
call fcn.0101e98b
mov esi, dword [ebp - 0x10]
mov eax, dword [0x1029044]
cmp eax, ebx
je 0x10214f2
test byte [eax + 0x1c], 2
je 0x10214f2
cmp byte [eax + 0x19], 5
jb 0x10214f2
push edi
push esi
push 0x1002358
push 0x86
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ddef
mov edi, dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push edi
call fcn.0102122f
add esp, 0x10
push 0x3f
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.0100c732
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0100464a
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.01003026
mov eax, dword [0x1029044]
cmp eax, ebx
je 0x1021557
test byte [eax + 0x1c], 2
je 0x1021557
cmp byte [eax + 0x19], 5
jb 0x1021557
push 0x3f
push dword [edi]
push 0x1002358
push 0x87
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ddef
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.01003026
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.01003026
mov eax, dword [0x1029044]
jmp 0x102157a
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
cmp eax, ebx
je 0x10215b4
test byte [eax + 0x1c], 1
je 0x10215b4
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x18], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x10215b4
push dword [edi]
push dword [ebp - 0x18]
push 0x1002358
push 0x88
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101dca5
lea ecx, [esi - 0x10]
call fcn.01003026
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.01003026
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8