Function at 0x404200
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 0x4284a8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1b8
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x118
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x154]
push 0
push eax
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
call fcn.00418230
add esp, 0xc
mov dword [ebp - 0x158], 0x11c
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404960
sub esp, 0x18
mov ecx, esp
push 0x4393cc
call fcn.00415600
lea ecx, [ebp - 0x17c]
call fcn.004029b0
add esp, 0x18
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x4042b4
mov eax, dword [eax]
push eax
sub esp, 0x18
mov ecx, esp
push 0x438d6c
call fcn.00415600
lea ecx, [ebp - 0x194]
call fcn.004029b0
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x4042da
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 - 0x180]
mov esi, eax
cmp edx, 0x10
jb 0x404324
mov ecx, dword [ebp - 0x194]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40431a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40497e
push edx
push ecx
call fcn.004171d4
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0xf
mov byte [ebp - 0x194], 0
cmp edx, 0x10
jb 0x404380
mov ecx, dword [ebp - 0x17c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404376
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40497e
push edx
push ecx
call fcn.004171d4
add esp, 8
mov dword [ebp - 0x16c], 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x168], 0xf
mov byte [ebp - 0x17c], 0
push eax
test esi, esi
je 0x4043a7
call esi
jmp 0x4043ad
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x154]
cmp eax, 0xa
jne 0x4043d4
cmp dword [ebp - 0x150], 0
jne 0x40495b
xor eax, eax
cmp byte [ebp - 0x3e], 1
setne al
inc eax
jmp 0x404956
cmp eax, 6
jne 0x404901
mov eax, dword [ebp - 0x150]
cmp eax, 3
jne 0x4043f9
xor eax, eax
cmp byte [ebp - 0x3e], 1
setne al
add eax, 3
jmp 0x404956
cmp eax, 2
jne 0x4048de
sub esp, 0x18
cmp byte [ebp - 0x3e], 1
jne 0x4044e9
mov dword [ebp - 0x15c], esp
mov esi, esp
sub esp, 0x18
mov dword [0x438930], 1
mov ecx, esp
push 0x43900c
call fcn.00415600
mov ecx, esi
call fcn.004029b0
mov esi, esp
mov dword [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
push 0x43921c
call fcn.00415600
mov ecx, esi
call fcn.004029b0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov edx, 0x80000002
lea ecx, [ebp - 0x17c]
call fcn.00402af0
add esp, 0x30
cmp dword [eax + 0x14], 0x10
jb 0x40447b
mov eax, dword [eax]
push eax
call fcn.0041b65d
mov edx, dword [ebp - 0x168]
add esp, 4
cmp eax, 0x55f0
setge al
mov byte [ebp - 0x161], al
cmp edx, 0x10
jb 0x4044d2
mov ecx, dword [ebp - 0x17c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4044c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404983
push edx
push ecx
call fcn.004171d4
mov al, byte [ebp - 0x161]
add esp, 8
test al, al
je 0x4048cd
mov dword [0x438930], 0x12
jmp 0x4048cd
mov ecx, esp
mov dword [0x438930], 4
push 0x438c04
call fcn.00415600
lea ecx, [ebp - 0x194]
call fcn.004029b0
mov edi, eax
mov dword [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x160], esp
sub esp, 0x18
mov ecx, esp
push 0x4392dc
call fcn.00415600
mov ecx, esi
call fcn.004029b0
mov esi, esp
mov byte [ebp - 4], 3
sub esp, 0x18
mov ecx, esp
push 0x43921c
call fcn.00415600
mov ecx, esi
call fcn.004029b0
add esp, 0x18
mov byte [ebp - 4], 2
mov edx, 0x80000002
lea ecx, [ebp - 0x17c]
call fcn.00402af0
add esp, 0x30
mov edx, edi
cmp dword [edi + 0x14], 0x10
jb 0x404571
mov edx, dword [edi]
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x40457b
mov ecx, dword [eax]
push dword [edi + 0x10]
push edx
mov edx, dword [eax + 0x10]
push 0
call fcn.004160c0
mov edx, dword [ebp - 0x168]
add esp, 0xc
mov esi, eax
cmp edx, 0x10
jb 0x4045c8
mov ecx, dword [ebp - 0x17c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4045be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404988
push edx
push ecx
call fcn.004171d4
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0xf
mov byte [ebp - 0x17c], 0
cmp edx, 0x10
jb 0x404624
mov ecx, dword [ebp - 0x194]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40461a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404988
push edx
push ecx
call fcn.004171d4
add esp, 8
mov eax, dword [0x438930]
mov ecx, 0x10
cmp esi, 0xf4240
cmovb eax, ecx
sub esp, 0x18
mov ecx, esp
mov dword [0x438930], eax
push 0x438a84
call fcn.00415600
lea ecx, [ebp - 0x194]
call fcn.004029b0
mov edi, eax
mov dword [ebp - 4], 4
mov esi, esp
mov dword [ebp - 0x160], esp
sub esp, 0x18
mov ecx, esp
push 0x4392dc
call fcn.00415600
mov ecx, esi
call fcn.004029b0
mov esi, esp
mov byte [ebp - 4], 5
sub esp, 0x18
mov ecx, esp
push 0x43921c
call fcn.00415600
mov ecx, esi
call fcn.004029b0
add esp, 0x18
mov byte [ebp - 4], 4
mov edx, 0x80000002
lea ecx, [ebp - 0x17c]
call fcn.00402af0
add esp, 0x30
mov edx, edi
cmp dword [edi + 0x14], 0x10
jb 0x4046bd
mov edx, dword [edi]
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x4046c7
mov ecx, dword [eax]
push dword [edi + 0x10]
push edx
mov edx, dword [eax + 0x10]
push 0
call fcn.004160c0
mov edx, dword [ebp - 0x168]
add esp, 0xc
mov esi, eax
cmp edx, 0x10
jb 0x404714
mov ecx, dword [ebp - 0x17c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40470a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40498d
push edx
push ecx
call fcn.004171d4
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0xf
mov byte [ebp - 0x17c], 0
cmp edx, 0x10
jb 0x404770
mov ecx, dword [ebp - 0x194]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404766
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40498d
push edx
push ecx
call fcn.004171d4
add esp, 8
mov eax, dword [0x438930]
mov ecx, 0x11
cmp esi, 0xf4240
cmovb eax, ecx
sub esp, 0x18
mov ecx, esp
mov dword [0x438930], eax
push 0x438a54
call fcn.00415600
lea ecx, [ebp - 0x1c4]
call fcn.004029b0
mov edi, eax
mov dword [ebp - 4], 6
mov esi, esp
mov dword [ebp - 0x160], esp
sub esp, 0x18
mov ecx, esp
push 0x4392dc
call fcn.00415600
mov ecx, esi
call fcn.004029b0
mov esi, esp
mov byte [ebp - 4], 7
sub esp, 0x18
mov ecx, esp
push 0x43921c
call fcn.00415600
mov ecx, esi
call fcn.004029b0
add esp, 0x18
mov byte [ebp - 4], 6
mov edx, 0x80000002
lea ecx, [ebp - 0x1ac]
call fcn.00402af0
add esp, 0x30
mov edx, edi
cmp dword [edi + 0x14], 0x10
jb 0x404809
mov edx, dword [edi]
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x404813
mov ecx, dword [eax]
push dword [edi + 0x10]
push edx
mov edx, dword [eax + 0x10]
push 0
call fcn.004160c0
mov edx, dword [ebp - 0x198]
add esp, 0xc
mov esi, eax
cmp edx, 0x10
jb 0x404860
mov ecx, dword [ebp - 0x1ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404856
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404992
push edx
push ecx
call fcn.004171d4
add esp, 8
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0xf
mov byte [ebp - 0x1ac], 0
cmp edx, 0x10
jb 0x4048b5
mov ecx, dword [ebp - 0x1c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4048ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404992
push edx
push ecx
call fcn.004171d4
add esp, 8
mov eax, dword [0x438930]
cmp esi, 0xf4240
mov ecx, 2
cmovb eax, ecx
mov dword [0x438930], eax
mov eax, dword [ebp - 0x154]
cmp eax, 6
jne 0x404901
mov eax, dword [ebp - 0x150]
test eax, eax
jne 0x4048ee
cmp byte [ebp - 0x3e], 1
setne al
add eax, 7
jmp 0x404956
cmp eax, 1
jne 0x40495b
xor eax, eax
cmp byte [ebp - 0x3e], 1
setne al
add eax, 9
jmp 0x404956
cmp eax, 5
jne 0x40495b
mov ecx, dword [ebp - 0x150]
cmp ecx, 2
jne 0x404936
cmp byte [ebp - 0x3e], 1
jne 0x40492a
cmp word [ebp - 0x38], 9
jne 0x40492a
mov dword [0x438930], 0xc
jmp 0x40495b
mov dword [0x438930], 0xd
jmp 0x40495b
cmp ecx, 1
jne 0x404947
mov dword [0x438930], 0xe
jmp 0x40495b
mov eax, dword [0x438930]
test ecx, ecx
mov edx, 0xf
cmove eax, edx
mov dword [0x438930], eax
mov eax, dword [0x438930]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00416b62
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0041b83c
call fcn.0041b83c
call fcn.0041b83c
call fcn.0041b83c
call fcn.0041b83c
int3