Function at 0x404420
Capabilities:
Check os version
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c4d7
mov eax, dword fs:[0]
push eax
mov eax, 0x1138
call fcn.0040ae70
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 4]
mov dword [edi], vtable.DFC::NameInfo.0
mov edx, 7
xor ecx, ecx
xor esi, esi
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], ecx
mov dword [ebp - 0x1140], edi
mov dword [ebp - 0x1130], eax
mov word [eax], si
lea eax, [edi + 0x20]
mov dword [ebp - 4], ecx
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], ecx
mov dword [ebp - 0x1144], eax
mov word [eax], si
lea esi, [edi + 0x3c]
xor eax, eax
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], ecx
mov dword [ebp - 0x1138], esi
mov word [esi], ax
lea ebx, [edi + 0x58]
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x10], ecx
mov dword [ebp - 0x112c], ebx
mov word [ebx], ax
lea eax, [edi + 0x74]
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x10], ecx
mov dword [ebp - 0x113c], eax
mov word [eax], dx
lea eax, [edi + 0x90]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
mov dword [ebp - 0x1134], eax
mov word [eax], dx
push 0xffe
push ecx
lea ecx, [ebp - 0x100e]
xor eax, eax
mov byte [ebp - 4], 5
push ecx
mov word [ebp - 0x1010], ax
call fcn.00409150
add esp, 0xc
lea edx, [ebp - 0x1128]
push edx
lea eax, [ebp - 0x1010]
push eax
mov dword [ebp - 0x1128], 0x800
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x404581
mov ecx, dword [ebp - 0x1128]
test ecx, ecx
je 0x404581
mov eax, dword [esi + 0x10]
cmp ecx, eax
ja 0x404542
or eax, 0xffffffff
call fcn.00403b90
jmp 0x404557
mov esi, dword [ebp - 0x1138]
mov ebx, ecx
sub ebx, eax
call fcn.00403a10
mov ebx, dword [ebp - 0x112c]
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404560
mov esi, dword [ebp - 0x1138]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
call fcn.00403aa0
push 0x114
lea ecx, [ebp - 0x1124]
push 0
push ecx
call fcn.00409150
add esp, 0xc
lea edx, [ebp - 0x1124]
push edx
mov dword [ebp - 0x1124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1120], 5
jb 0x404851
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 0x1128]
push eax
lea ecx, [ebp - 0x1010]
push ecx
push 5
mov dword [ebp - 0x1128], 0x800
call edi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x1128]
cmp ecx, eax
ja 0x4045f6
or eax, 0xffffffff
mov esi, ebx
call fcn.00403b90
jmp 0x404607
mov esi, dword [ebp - 0x112c]
mov ebx, ecx
sub ebx, eax
call fcn.00403a10
mov ebx, esi
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404610
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
mov esi, ebx
call fcn.00403aa0
lea edx, [ebp - 0x1128]
push edx
lea eax, [ebp - 0x1010]
push eax
push 6
mov dword [ebp - 0x1128], 0x800
call edi
mov esi, dword [ebp - 0x113c]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x1128]
cmp ecx, eax
ja 0x404666
or eax, 0xffffffff
call fcn.00403b90
jmp 0x40466f
mov ebx, ecx
sub ebx, eax
call fcn.00403a10
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
jmp 0x404680
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404680
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
call fcn.00403aa0
lea ecx, [ebp - 0x1128]
push ecx
lea edx, [ebp - 0x1010]
push edx
push 7
mov dword [ebp - 0x1128], 0x800
call edi
mov esi, dword [ebp - 0x1134]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x1128]
cmp ecx, eax
ja 0x4046d4
or eax, 0xffffffff
call fcn.00403b90
jmp 0x4046dd
mov ebx, ecx
sub ebx, eax
call fcn.00403a10
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4046e6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
call fcn.00403aa0
lea eax, [ebp - 0x1128]
push eax
lea ecx, [ebp - 0x1010]
push ecx
push 0
mov dword [ebp - 0x1128], 0x800
call edi
mov esi, dword [ebp - 0x1130]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x1128]
cmp ecx, eax
ja 0x40473a
or eax, 0xffffffff
call fcn.00403b90
jmp 0x404743
mov ebx, ecx
sub ebx, eax
call fcn.00403a10
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404750
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
call fcn.00403aa0
mov eax, dword [ebp - 0x1138]
mov edi, dword [eax + 0x10]
mov ebx, 8
cmp dword [eax + 0x14], ebx
jb 0x404780
mov eax, dword [eax]
mov esi, dword [ebp - 0x1130]
push eax
mov eax, dword [esi + 0x10]
mov ecx, esi
call fcn.004038e0
test eax, eax
jne 0x4047a4
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], ebx
jb 0x40479f
mov esi, dword [esi]
xor edx, edx
mov word [esi], dx
lea eax, [ebp - 0x1128]
push eax
lea ecx, [ebp - 0x1010]
push ecx
push 1
mov dword [ebp - 0x1128], 0x800
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov esi, dword [ebp - 0x1144]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x1128]
cmp ecx, eax
ja 0x4047e1
or eax, 0xffffffff
call fcn.00403b90
jmp 0x4047ef
mov ebx, ecx
sub ebx, eax
call fcn.00403a10
mov ebx, 8
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
jmp 0x404800
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404800
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
call fcn.00403aa0
mov eax, dword [ebp - 0x112c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0x14], ebx
jb 0x40482b
mov eax, dword [eax]
push eax
mov eax, dword [esi + 0x10]
mov ecx, esi
call fcn.004038e0
test eax, eax
jne 0x404849
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], ebx
jb 0x404844
mov esi, dword [esi]
xor edx, edx
mov word [esi], dx
mov eax, dword [ebp - 0x1140]
jmp 0x404853
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406271
mov esp, ebp
pop ebp
ret