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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x44b018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x118
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x15c]
movaps xmmword [ebp - 0x40], xmm0
push 0
push eax
movaps xmmword [ebp - 0x30], xmm0
call fcn.0041a7c0
add esp, 0xc
mov dword [ebp - 0x160], 0x11c
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x404dbe
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041878c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
sub esp, 0x18
mov ecx, esp
push 0x44c49c
call fcn.004157d0
lea ecx, [ebp - 0x17c]
call fcn.00403500
mov esi, eax
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x404de5
mov esi, dword [esi]
sub esp, 0x18
mov ecx, esp
push 0x44bddc
call fcn.004157d0
lea ecx, [ebp - 0x194]
call fcn.00403500
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x404e0a
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x180]
mov esi, eax
cmp edx, 0x10
jb 0x404e55
mov ecx, dword [ebp - 0x194]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404e4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40522f
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0xf
mov byte [ebp - 0x194], 0
cmp edx, 0x10
jb 0x404eaa
mov ecx, dword [ebp - 0x17c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404ea0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40522f
push edx
push ecx
call fcn.00418e03
add esp, 8
mov dword [ebp - 0x16c], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x168], 0xf
mov byte [ebp - 0x17c], 0
push eax
test esi, esi
je 0x404ed1
call esi
jmp 0x404ed7
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x15c]
cmp eax, 0xa
jne 0x404efe
cmp dword [ebp - 0x158], 0
jne 0x405217
xor eax, eax
cmp byte [ebp - 0x46], 1
setne al
inc eax
jmp 0x405212
cmp eax, 6
jne 0x4051bd
mov eax, dword [ebp - 0x158]
cmp eax, 3
jne 0x404f23
xor eax, eax
cmp byte [ebp - 0x46], 1
setne al
add eax, 3
jmp 0x405212
cmp eax, 2
jne 0x40519a
sub esp, 0x18
cmp byte [ebp - 0x46], 1
jne 0x404fff
mov esi, esp
mov dword [0x44b970], 1
sub esp, 0x18
mov ecx, esp
push 0x44c0ac
call fcn.004157d0
mov ecx, esi
call fcn.00403500
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x44c2d4
call fcn.004157d0
mov ecx, esi
call fcn.00403500
add esp, 0x18
lea ecx, [ebp - 0x17c]
mov edx, 0x80000002
call fcn.00403610
add esp, 0x30
cmp dword [eax + 0x14], 0x10
jb 0x404f91
mov eax, dword [eax]
push eax
call fcn.00420a75
mov edx, dword [ebp - 0x168]
add esp, 4
cmp eax, 0x55f0
setge al
mov byte [ebp - 0x161], al
cmp edx, 0x10
jb 0x404fe8
mov ecx, dword [ebp - 0x17c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404fd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405234
push edx
push ecx
call fcn.00418e03
mov al, byte [ebp - 0x161]
add esp, 8
test al, al
je 0x405189
mov dword [0x44b970], 0x12
jmp 0x405189
mov edi, esp
mov dword [0x44b970], 4
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x44c3ac
call fcn.004157d0
mov ecx, esi
call fcn.00403500
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x44c2d4
call fcn.004157d0
mov ecx, esi
call fcn.00403500
add esp, 0x18
mov edx, 0x80000002
mov ecx, edi
call fcn.00403610
add esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x44bc74
call fcn.004157d0
mov ecx, esi
call fcn.00403500
add esp, 0x18
call fcn.00404b30
mov ecx, dword [0x44b970]
test eax, eax
mov edx, 0x10
cmovg ecx, edx
add esp, 0x18
mov edi, esp
mov dword [0x44b970], ecx
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x44c3ac
call fcn.004157d0
mov ecx, esi
call fcn.00403500
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x44c2d4
call fcn.004157d0
mov ecx, esi
call fcn.00403500
add esp, 0x18
mov edx, 0x80000002
mov ecx, edi
call fcn.00403610
add esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x44baf4
call fcn.004157d0
mov ecx, esi
call fcn.00403500
add esp, 0x18
call fcn.00404b30
mov ecx, dword [0x44b970]
test eax, eax
mov edx, 0x11
cmovg ecx, edx
add esp, 0x18
mov edi, esp
mov dword [0x44b970], ecx
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x44c3ac
call fcn.004157d0
mov ecx, esi
call fcn.00403500
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x44c2d4
call fcn.004157d0
mov ecx, esi
call fcn.00403500
add esp, 0x18
mov edx, 0x80000002
mov ecx, edi
call fcn.00403610
add esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x44bac4
call fcn.004157d0
mov ecx, esi
call fcn.00403500
add esp, 0x18
call fcn.00404b30
mov ecx, dword [0x44b970]
add esp, 0x30
test eax, eax
mov edx, 2
cmovg ecx, edx
mov dword [0x44b970], ecx
mov eax, dword [ebp - 0x15c]
cmp eax, 6
jne 0x4051bd
mov eax, dword [ebp - 0x158]
test eax, eax
jne 0x4051aa
cmp byte [ebp - 0x46], 1
setne al
add eax, 7
jmp 0x405212
cmp eax, 1
jne 0x405217
xor eax, eax
cmp byte [ebp - 0x46], 1
setne al
add eax, 9
jmp 0x405212
cmp eax, 5
jne 0x405217
mov ecx, dword [ebp - 0x158]
cmp ecx, 2
jne 0x4051f2
cmp byte [ebp - 0x46], 1
jne 0x4051e6
cmp word [ebp - 0x40], 9
jne 0x4051e6
mov dword [0x44b970], 0xc
jmp 0x405217
mov dword [0x44b970], 0xd
jmp 0x405217
cmp ecx, 1
jne 0x405203
mov dword [0x44b970], 0xe
jmp 0x405217
mov eax, dword [0x44b970]
test ecx, ecx
mov edx, 0xf
cmove eax, edx
mov dword [0x44b970], eax
mov ecx, dword [ebp - 4]
mov eax, dword [0x44b970]
xor ecx, ebp
pop edi
pop esi
call fcn.0041878c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042140f
call fcn.0042140f
int3