Function at 0x407100
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ac50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x1a0
push esi
push edi
push 0x118
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x1ac]
push 0
push eax
movups xmmword [ebp - 0x74], xmm0
movups xmmword [ebp - 0x64], xmm0
call fcn.00436180
add esp, 0xc
mov dword [ebp - 0x1b0], 0x11c
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40718a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
sub esp, 0x18
mov ecx, esp
push 0x464520
call fcn.00419ff0
lea ecx, [ebp - 0x50]
call fcn.00405210
add esp, 0x18
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x4071b3
mov eax, dword [eax]
push eax
sub esp, 0x18
mov ecx, esp
push 0x463e30
call fcn.00419ff0
lea ecx, [ebp - 0x38]
call fcn.00405210
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x4071d6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x24]
mov esi, eax
cmp edx, 0x10
jb 0x40721a
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407210
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407663
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp edx, 0x10
jb 0x407267
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40725d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407663
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x74]
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
push eax
test esi, esi
je 0x407285
call esi
jmp 0x40728b
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1ac]
cmp eax, 0xa
jne 0x4072b5
cmp dword [ebp - 0x1a8], 0
jne 0x40764b
xor eax, eax
cmp byte [ebp - 0x96], 1
setne al
inc eax
jmp 0x407646
cmp eax, 6
jne 0x4075ee
mov eax, dword [ebp - 0x1a8]
cmp eax, 3
jne 0x4072dd
xor eax, eax
cmp byte [ebp - 0x96], 1
setne al
add eax, 3
jmp 0x407646
cmp eax, 2
jne 0x4075c5
sub esp, 0x18
cmp byte [ebp - 0x96], 1
jne 0x4073c4
mov dword [ebp - 0x14], esp
mov esi, esp
sub esp, 0x18
mov dword [0x463990], 1
mov ecx, esp
push 0x464100
call fcn.00419ff0
mov ecx, esi
call fcn.00405210
mov esi, esp
mov dword [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
push 0x464340
call fcn.00419ff0
mov ecx, esi
call fcn.00405210
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov edx, connect
lea ecx, [ebp - 0x8c]
call fcn.00405350
add esp, 0x30
cmp dword [eax + 0x14], 0x10
jb 0x40735f
mov eax, dword [eax]
push eax
call fcn.0043aaeb
mov edx, dword [ebp - 0x78]
add esp, 4
cmp eax, 0x55f0
setge al
mov byte [ebp - 0x19], al
cmp edx, 0x10
jb 0x4073ad
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4073a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407668
push edx
push ecx
call fcn.0041f5bc
mov al, byte [ebp - 0x19]
add esp, 8
test al, al
je 0x4075b4
mov dword [0x463990], 0x12
jmp 0x4075b4
mov dword [ebp - 0x18], esp
mov edi, esp
sub esp, 0x18
mov dword [0x463990], 4
mov dword [ebp - 0x14], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x464418
call fcn.00419ff0
mov ecx, esi
call fcn.00405210
mov esi, esp
mov dword [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
push 0x464340
call fcn.00419ff0
mov ecx, esi
call fcn.00405210
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov edx, connect
mov ecx, edi
call fcn.00405350
add esp, 0x18
mov dword [ebp - 4], 3
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x463cb0
call fcn.00419ff0
mov ecx, esi
call fcn.00405210
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
call fcn.00404d90
mov ecx, dword [0x463990]
test eax, eax
mov edx, 0x10
cmovg ecx, edx
add esp, 0x18
mov dword [ebp - 0x20], esp
mov edi, esp
sub esp, 0x18
mov dword [0x463990], ecx
mov dword [ebp - 0x18], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x464418
call fcn.00419ff0
mov ecx, esi
call fcn.00405210
mov esi, esp
mov dword [ebp - 4], 4
sub esp, 0x18
mov ecx, esp
push 0x464340
call fcn.00419ff0
mov ecx, esi
call fcn.00405210
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov edx, connect
mov ecx, edi
call fcn.00405350
add esp, 0x18
mov dword [ebp - 4], 5
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x463b30
call fcn.00419ff0
mov ecx, esi
call fcn.00405210
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
call fcn.00404d90
mov ecx, dword [0x463990]
test eax, eax
mov edx, 0x11
cmovg ecx, edx
add esp, 0x18
mov dword [ebp - 0x20], esp
mov edi, esp
sub esp, 0x18
mov dword [0x463990], ecx
mov dword [ebp - 0x18], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x464418
call fcn.00419ff0
mov ecx, esi
call fcn.00405210
mov esi, esp
mov dword [ebp - 4], 6
sub esp, 0x18
mov ecx, esp
push 0x464340
call fcn.00419ff0
mov ecx, esi
call fcn.00405210
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov edx, connect
mov ecx, edi
call fcn.00405350
add esp, 0x18
mov dword [ebp - 4], 7
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x463b00
call fcn.00419ff0
mov ecx, esi
call fcn.00405210
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
call fcn.00404d90
mov ecx, dword [0x463990]
add esp, 0x30
test eax, eax
mov edx, 2
cmovg ecx, edx
mov dword [0x463990], ecx
mov eax, dword [ebp - 0x1ac]
cmp eax, 6
jne 0x4075ee
mov eax, dword [ebp - 0x1a8]
test eax, eax
jne 0x4075d8
cmp byte [ebp - 0x96], 1
setne al
add eax, 7
jmp 0x407646
cmp eax, 1
jne 0x40764b
xor eax, eax
cmp byte [ebp - 0x96], 1
setne al
add eax, 9
jmp 0x407646
cmp eax, 5
jne 0x40764b
mov ecx, dword [ebp - 0x1a8]
cmp ecx, 2
jne 0x407626
cmp byte [ebp - 0x96], 1
jne 0x40761a
cmp word [ebp - 0x74], 9
jne 0x40761a
mov dword [0x463990], 0xc
jmp 0x40764b
mov dword [0x463990], 0xd
jmp 0x40764b
cmp ecx, 1
jne 0x407637
mov dword [0x463990], 0xe
jmp 0x40764b
mov eax, dword [0x463990]
test ecx, ecx
mov edx, 0xf
cmove eax, edx
mov dword [0x463990], eax
mov eax, dword [0x463990]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00438cc7
call fcn.00438cc7
int3