Function at 0x431590
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x508880
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x30]
mov dword [eax], 0
mov ecx, dword [edi + 0x1c]
cmp ecx, 1
jne 0x431692
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov byte [edx], 0x8d
mov edx, dword [ecx]
mov byte [edx + 1], 0x85
mov edx, dword [edi + 0xac]
mov esi, dword [ecx]
neg edx
mov dword [esi + 2], edx
add dword [ecx], 6
mov edx, dword [ecx]
mov byte [edx], 0x50
inc dword [ecx]
mov edx, dword [ecx]
mov byte [edx], 0x83
mov edx, dword [ecx]
mov byte [edx + 1], 0xc0
mov edx, dword [ecx]
mov byte [edx + 2], 8
add dword [ecx], 3
mov edx, dword [ecx]
mov byte [edx], 0x50
inc dword [ecx]
mov edx, dword [ecx]
mov byte [edx], 0x68
mov edx, dword [ecx]
mov dword [edx + 1], edi
add dword [ecx], 5
mov edx, dword [ecx]
mov byte [edx], 0xe8
mov edx, dword [ecx]
mov esi, 0x431550
sub esi, edx
sub esi, 5
mov dword [edx + 1], esi
add dword [ecx], 5
mov edx, dword [ecx]
mov byte [edx], 0x83
mov edx, dword [ecx]
mov byte [edx + 1], 0xc4
mov edx, dword [ecx]
mov byte [edx + 2], 4
add dword [ecx], 3
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, 0x427360
mov eax, dword [ecx]
mov byte [eax], 0xe8
mov eax, dword [ecx]
sub edx, eax
sub edx, 5
mov dword [eax + 1], edx
add dword [ecx], 5
mov eax, dword [ecx]
mov byte [eax], 0x83
mov eax, dword [ecx]
mov byte [eax + 1], 0xf8
mov edx, dword [ecx]
mov byte [edx + 2], 0
add dword [ecx], 3
mov edx, dword [ecx]
mov byte [edx], 0xf
lea eax, [edx + 2]
mov edx, dword [ecx]
mov byte [edx + 1], 0x84
mov edx, dword [ecx]
lea esi, [edx + 6]
mov dword [edx + 2], esi
add dword [ecx], 6
jmp 0x43170f
test ecx, ecx
jne 0x431700
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov byte [edx], 0xc7
mov edx, dword [ecx]
mov byte [edx + 1], 0x85
mov edx, dword [edi + 0xac]
mov esi, dword [ecx]
neg edx
mov dword [esi + 2], edx
mov edx, dword [ecx]
mov dword [edx + 6], 1
add dword [ecx], 0xa
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ecx]
mov byte [eax], 0x81
mov edx, dword [ecx]
mov byte [edx + 1], 0xbd
mov eax, dword [edi + 0xac]
mov edx, dword [ecx]
neg eax
mov dword [edx + 2], eax
mov eax, dword [ecx]
mov edx, dword [edi + 0x20]
mov dword [eax + 6], edx
add dword [ecx], 0xa
mov edx, dword [ecx]
mov byte [edx], 0xf
lea eax, [edx + 2]
mov edx, dword [ecx]
mov byte [edx + 1], 0x8f
mov edx, dword [ecx]
lea esi, [edx + 6]
mov dword [edx + 2], esi
add dword [ecx], 6
jmp 0x43170f
cmp ecx, 2
jne 0x431725
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov dword [eax], edx
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
cmp ecx, 3
jne 0x431753
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ecx]
mov byte [eax], 0x68
mov edx, dword [ecx]
add edi, 0x28
mov dword [edx + 1], edi
add dword [ecx], 5
mov eax, dword [ecx]
mov byte [eax], 0x53
inc dword [ecx]
mov edx, 0x429480
jmp 0x431651
cmp ecx, 4
jne 0x431b28
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi]
mov byte [ecx], 0x68
mov ecx, dword [esi]
lea edx, [edi + 0x30]
mov dword [ecx + 1], edx
add dword [esi], 5
mov ecx, dword [esi]
mov byte [ecx], 0x68
mov edx, dword [esi]
lea ebx, [edi + 0x2c]
mov dword [edx + 1], ebx
add dword [esi], 5
mov ecx, dword [esi]
mov byte [ecx], 0x53
inc dword [esi]
mov ecx, dword [esi]
mov byte [ecx], 0xe8
mov ecx, dword [esi]
mov edx, 0x4294e0
sub edx, ecx
push 0
sub edx, 5
mov dword [ecx + 1], edx
add dword [esi], 5
mov ecx, dword [esi]
push 0x65a9ac
push 0x65a4e0
mov dword [eax], ecx
mov eax, dword [ebx]
push 0
push eax
call fcn.004d019b
mov ebp, eax
add esp, 0x14
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call fcn.00446760
mov ecx, dword [edi + 0x34]
lea eax, [edi + 0x34]
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x431ac8
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
sub eax, 0x100
je 0x4318f8
sub eax, 1
jne 0x431ac8
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
call eax
call fcn.004ced60
mov ecx, eax
mov eax, dword [esp + 0x30]
cmp dword [eax - 0xc], 0
jge 0x431827
push 0x80070057
call fcn.00401000
movzx eax, word [eax]
cmp ax, 0x24
jne 0x431881
mov edx, dword [esi]
mov byte [edx], 0x81
mov eax, dword [esi]
mov byte [eax + 1], 0xbe
mov ebp, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov edx, dword [ebp + 0x1c]
mov edx, dword [edx]
mov eax, dword [edx + eax*4]
mov edi, dword [esi]
mov dword [edi + 2], eax
mov edx, dword [esi]
mov dword [edx + 6], ecx
add dword [esi], 0xa
mov eax, dword [esi]
mov byte [eax], 0xf
lea edi, [eax + 2]
mov eax, dword [esi]
mov byte [eax + 1], 0x8f
mov eax, dword [esi]
lea ecx, [eax + 6]
mov dword [eax + 2], ecx
add dword [esi], 6
lea ecx, [esp + 0x30]
call fcn.004051e0
mov eax, edi
jmp 0x43170f
cmp ax, 0x23
jne 0x4318ea
mov ebp, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov edx, dword [ebp + 0x1c]
mov edx, dword [edx]
mov eax, dword [edx + eax*4]
cdq
and edx, 3
add eax, edx
mov edx, dword [esi]
mov byte [edx], 0x81
mov edx, dword [esi]
mov byte [edx + 1], 0x3d
mov edx, dword [0x65f584]
sar eax, 2
lea eax, [edx + eax*4]
mov edx, dword [esi]
mov dword [edx + 2], eax
mov eax, dword [esi]
mov dword [eax + 6], ecx
add dword [esi], 0xa
mov eax, dword [esi]
mov byte [eax], 0xf
mov ecx, dword [esi]
mov byte [ecx + 1], 0x8f
lea edi, [eax + 2]
mov eax, dword [esi]
lea edx, [eax + 6]
mov dword [eax + 2], edx
add dword [esi], 6
lea ecx, [esp + 0x30]
call fcn.004051e0
mov eax, edi
jmp 0x43170f
lea ecx, [esp + 0x30]
call fcn.004051e0
jmp 0x43170d
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
push 0
push 0x65a9ac
push 0x65a4e0
push 0
push eax
call fcn.004d019b
add esp, 0x14
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
mov dword [esp + 0x1c], eax
call fcn.00446760
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
mov byte [esp + 0x24], 1
test eax, eax
jge 0x43193f
push 0x80070057
call fcn.00401000
cmp word [ecx], 0x24
jne 0x431a0d
test eax, eax
jle 0x43196b
push 0x2e
push ecx
call fcn.004ce35f
add esp, 8
test eax, eax
je 0x43196b
sub eax, dword [esp + 0x2c]
sar eax, 1
cmp eax, 0xffffffff
jne 0x431a09
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x4319c6
cmp dword [ecx + 0xc], 0
jne 0x4319c6
mov ecx, dword [esi]
mov byte [ecx], 0x8b
mov edx, dword [esi]
mov byte [edx + 1], 0x86
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
mov edx, dword [ecx]
mov ecx, dword [eax]
mov eax, dword [esi]
mov ecx, dword [ecx + edx*4]
mov dword [eax + 2], ecx
add dword [esi], 6
push ebp
push esi
mov ecx, edi
call fcn.0042db70
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.004051e0
lea ecx, [esp + 0x30]
call fcn.004051e0
mov eax, esi
jmp 0x43170f
mov edx, dword [esi]
mov byte [edx], 0x8d
mov ecx, dword [esi]
mov byte [ecx + 1], 0x86
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x10]
mov ecx, dword [edx]
mov edx, dword [eax + 0x1c]
mov eax, dword [edx]
mov eax, dword [eax + ecx*4]
mov edx, dword [esi]
mov dword [edx + 2], eax
add dword [esi], 6
mov eax, dword [esi]
mov byte [eax], 0x50
inc dword [esi]
mov eax, dword [esi]
mov byte [eax], 0xe8
mov eax, dword [esi]
mov ecx, 0x4279b0
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
add dword [esi], 5
jmp 0x4319a2
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x431a1e
push 0x80070057
call fcn.00401000
cmp word [ecx], 0x23
jne 0x431abf
test eax, eax
jle 0x431a46
push 0x2e
push ecx
call fcn.004ce35f
add esp, 8
test eax, eax
je 0x431a46
sub eax, dword [esp + 0x2c]
sar eax, 1
cmp eax, 0xffffffff
jne 0x431abf
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx]
mov edx, dword [ecx + 0x1c]
mov edx, dword [edx]
mov eax, dword [edx + eax*4]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp dword [ecx + 8], 0
je 0x431a8d
mov edx, dword [ecx + 8]
cmp dword [edx + 0xc], 0
jne 0x431a8d
mov ecx, dword [esi]
mov byte [ecx], 0xa1
mov edx, dword [0x65f584]
mov ecx, dword [esi]
lea eax, [edx + eax*4]
mov dword [ecx + 1], eax
add dword [esi], 5
jmp 0x4319a2
mov edx, dword [esi]
mov byte [edx], 0x68
mov ecx, dword [0x65f584]
lea edx, [ecx + eax*4]
mov eax, dword [esi]
mov dword [eax + 1], edx
add dword [esi], 5
mov eax, dword [esi]
mov byte [eax], 0xe8
mov eax, dword [esi]
mov ecx, 0x4279b0
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
add dword [esi], 5
jmp 0x4319a2
lea ecx, [esp + 0x2c]
call fcn.004051e0
mov edx, dword [esi]
mov ecx, dword [esp + 0x14]
mov byte [edx], 0x68
mov eax, dword [esi]
mov dword [eax + 1], ecx
add dword [esi], 5
mov eax, dword [esi]
mov byte [eax], 0x68
mov edx, dword [esi]
mov dword [edx + 1], ebx
add dword [esi], 5
mov eax, dword [esi]
mov byte [eax], 0x53
inc dword [esi]
mov eax, dword [esi]
mov byte [eax], 0xe8
mov eax, dword [esi]
mov ecx, 0x42a840
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
add dword [esi], 5
mov eax, dword [esi]
mov byte [eax], 0x83
mov edx, dword [esi]
mov byte [edx + 1], 0xf8
mov eax, dword [esi]
mov byte [eax + 2], 0
add dword [esi], 3
mov eax, dword [esi]
mov byte [eax], 0xf
mov ecx, dword [esi]
mov byte [ecx + 1], 0x84
jmp 0x4318cc
cmp ecx, 5
jne 0x43170d
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov byte [edx], 0x68
mov esi, dword [ecx]
lea edx, [edi + 0x30]
mov dword [esi + 1], edx
add dword [ecx], 5
mov edx, dword [ecx]
mov byte [edx], 0x68
mov esi, dword [ecx]
lea edx, [edi + 0x2c]
mov dword [esi + 1], edx
add dword [ecx], 5
mov esi, dword [ecx]
mov byte [esi], 0x53
inc dword [ecx]
mov esi, dword [ecx]
mov byte [esi], 0xe8
mov esi, dword [ecx]
mov ebx, 0x4294e0
sub ebx, esi
sub ebx, 5
mov dword [esi + 1], ebx
add dword [ecx], 5
mov esi, dword [ecx]
mov dword [eax], esi
mov eax, dword [ecx]
mov byte [eax], 0x68
mov eax, dword [ecx]
add edi, 0x34
mov dword [eax + 1], edi
add dword [ecx], 5
mov eax, dword [ecx]
mov byte [eax], 0x68
mov eax, dword [ecx]
mov dword [eax + 1], edx
add dword [ecx], 5
mov eax, dword [ecx]
mov byte [eax], 0x53
inc dword [ecx]
mov edx, 0x42a8c0
jmp 0x431651