Function at 0x401610
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x575834]
xor eax, esp
mov dword [esp + 0x114], eax
xor eax, eax
xor ecx, ecx
push str.KERNEL32.DLL
mov word [esi + 0x110], ax
mov word [esi + 0x224], cx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40165a
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0050271c
add esp, 0x118
ret
push ebp
push edi
push 0x554940
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401875
push 0x114
lea edx, [esp + 0xc]
push 0
push edx
call fcn.005047c0
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x114
call edi
test eax, eax
jne 0x4016b0
pop edi
pop ebp
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0050271c
add esp, 0x118
ret
movzx eax, word [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
lea eax, [esp + 0x1c]
lea ebp, [esi + 0x10]
mov dword [esi], ecx
mov edx, ebp
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4016d2
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x4017e0
mov eax, dword [esi + 0x120]
mov dword [esi + 0xc], 3
mov edx, 4
cmp eax, 3
jne 0x401738
cmp dword [esi + 0x114], edx
jne 0x401779
mov ecx, dword [esi + 0x11c]
cmp ecx, 0x3b6
jbe 0x401779
cmp ecx, 0x438
ja 0x401779
mov edx, 1
mov eax, edx
mov word [esi + 0x110], dx
mov word [esi + 0x224], ax
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esi + 0x114], edx
mov edx, dword [esi + 0xc]
mov dword [esi + 0x120], edx
lea edx, [esi + 0x124]
mov dword [esi + 0x118], eax
mov dword [esi + 0x11c], ecx
mov eax, ebp
sub edx, ebp
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401765
jmp 0x4018e2
cmp eax, 3
jne 0x401738
cmp dword [esi + 0x114], edx
jne 0x4017b2
cmp dword [esi + 0x118], 0xa
jae 0x4017b2
cmp dword [esi + 0x11c], 0x438
jbe 0x4017b2
mov ecx, 2
mov edx, ecx
mov word [esi + 0x110], cx
mov word [esi + 0x224], dx
jmp 0x401738
cmp eax, 3
jne 0x401738
mov eax, esi
call fcn.00401900
test eax, eax
je 0x401738
mov eax, 1
mov ecx, eax
mov word [esi + 0x110], ax
mov word [esi + 0x224], cx
jmp 0x401738
cmp eax, 2
jne 0x401864
lea edi, [esp + 0x1c]
mov dword [esi + 0xc], 4
call fcn.00401930
mov word [esi + 0x110], ax
mov word [esi + 0x224], ax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x401738
mov dword [esi + 0x11c], eax
mov eax, 0x5549c4
lea edx, [esi + 0x124]
mov dword [esi + 0xc], 3
mov dword [esi + 0x114], 3
mov dword [esi + 0x118], 0xa
mov dword [esi + 0x120], 2
sub edx, eax
jmp 0x401850
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401850
jmp 0x4018e2
cmp eax, 3
jne 0x401807
mov dword [esi + 0xc], 5
jmp 0x401738
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
mov edx, 4
mov dword [esi + 0xc], edx
mov dword [esi + 0x120], edx
mov dword [esi + 4], eax
mov dword [esi + 0x118], eax
lea eax, [esi + 0x10]
lea edx, [esi + 0x124]
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0x114], ecx
mov dword [esi + 0x11c], 0
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4018c0
call fcn.00401990
mov word [esi + 0x110], ax
mov word [esi + 0x224], ax
mov ecx, dword [esp + 0x11c]
pop edi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0050271c
add esp, 0x118
ret