Function at 0x5322d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
test dl, dl
je 0x5322ea
add esp, 0xfffffff0
call fcn.004047b8
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
call fcn.00405854
xor eax, eax
push ebp
push 0x5325d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6e41ac]
mov eax, dword [eax]
mov dl, 3
call fcn.005058fc
test al, al
jne 0x53237c
mov eax, dword [0x6df7ac]
call fcn.004391e4
xor eax, eax
push ebp
push 0x532375
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x6df7a8], 5
setge dl
mov ecx, dword [0x6e3bf8]
mov ecx, dword [ecx]
mov eax, dword [0x4f2694]
call fcn.004f0fa4
add dword [0x6df7a8], 1
jno 0x53235d
call fcn.00404324
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53237c
mov eax, dword [0x6df7ac]
call fcn.004391ec
ret
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004f2a40
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4c], edx
mov dl, 1
mov eax, dword [0x531e74]
call fcn.0043915c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov dl, 1
mov eax, dword [0x531dc0]
call fcn.00404424
mov edx, dword [ebp - 4]
mov dword [edx + 0xcc], eax
mov dl, 1
mov eax, dword [0x41c5d0]
call fcn.00404424
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41c5d0]
call fcn.00404424
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
mov dl, 1
mov eax, dword [0x41c5d0]
call fcn.00404424
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
mov dl, 1
mov eax, dword [0x41cc5c]
call fcn.00404424
mov edx, dword [ebp - 4]
mov dword [edx + 0xa8], eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x20]
mov dl, byte [ebp - 6]
mov eax, dword [ebp - 4]
call fcn.00533ec4
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x40], 0xffffffff
mov eax, dword [ebp - 4]
add eax, 0x94
mov edx, dword [0x6e3f9c]
mov edx, dword [edx]
mov edx, dword [edx + 0xd0]
call fcn.00405428
mov eax, dword [ebp - 4]
add eax, 0x90
mov edx, dword [0x6e3f9c]
mov edx, dword [edx]
mov edx, dword [edx + 0xcc]
call fcn.00405428
cmp dword [0x6df79c], 0
je 0x532496
mov eax, dword [0x6df79c]
cmp word [eax + 0x12], 0
je 0x532496
mov ebx, dword [0x6df79c]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x14]
call dword [ebx + 0x10]
mov eax, dword [0x6e3f9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x160]
mov edx, dword [ebp - 4]
mov dword [edx + 0xac], eax
call fcn.0040cb10
mov eax, dword [ebp - 4]
fstp qword [eax + 0xb0]
wait
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x58]
mov eax, dword [0x6e3f9c]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.00537d5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00405694
test eax, eax
jne 0x5324f8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0053215c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, 0x58
call fcn.00405428
mov eax, dword [ebp - 4]
call fcn.005320d0
test al, al
je 0x532525
lea edx, [ebp - 0x10]
mov eax, dword [0x6e3f9c]
mov eax, dword [eax]
call fcn.00538194
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, 0xc8
call fcn.00405428
jmp 0x53255e
lea edx, [ebp - 0x14]
mov eax, dword [0x6e3f9c]
mov eax, dword [eax]
call fcn.00538194
push dword [ebp - 0x14]
push 0x532604
push 0x532614
mov eax, dword [ebp - 4]
push dword [eax + 0x58]
push 0x532614
mov eax, dword [ebp - 4]
add eax, 0xc8
mov edx, 5
call fcn.00405768
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
call fcn.0040ac28
test al, al
jne 0x532580
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov dl, 1
call fcn.004ea04c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x531ca0]
call fcn.005352b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov dl, 1
mov eax, dword [0x5317f0]
call fcn.005319bc
mov edx, dword [ebp - 4]
mov dword [edx + 0x68], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5325d9
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004053f8
lea eax, [ebp - 0xc]
call fcn.004053d4
lea eax, [ebp + 0x20]
call fcn.004053d4
ret