Function at 0x4028be
Capabilities:
Check os version

Disassembly:
sub esp, 0x340
mov eax, dword [esp + 0x348]
push ebx
mov ebx, dword [esp + 0x348]
add eax, 0x528
push ebp
push edi
xor edi, edi
mov dword [esp + 0x30], eax
mov ebp, dword [eax + 0x3c]
add ebp, eax
mov dword [esp + 0x14], edi
push edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], ebp
call dword [ebx + 0x38]
mov edx, eax
mov ax, word [ebp + 4]
mov ecx, dword [edx + 0x3c]
cmp ax, word [ecx + edx + 4]
jne 0x403111
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edi
mov eax, dword [ebp + 0xa4]
mov dword [esp + 0x40], eax
test eax, eax
jne 0x40292d
mov eax, dword [ebp + 0x34]
mov dword [esp + 0xc], eax
push esi
push 3
xor ecx, ecx
lea esi, [ebx + 0x625]
pop edx
inc ecx
cmp byte [esi], 0
push edi
jne 0x402967
push 0x8000000
push 0x40
lea eax, [esp + 0x58]
push eax
push edi
push 0xf001f
lea eax, [esp + 0x58]
push eax
call dword [ebx + 0x120]
test eax, eax
jne 0x403110
jmp 0x4029e5
push edi
push edx
push edi
push ecx
push 0x80000000
push esi
call dword [ebx + 0x60]
mov edi, eax
cmp edi, 0xffffffff
je 0x403110
test edi, edi
je 0x403110
lea eax, [esp + 0x38]
xorps xmm0, xmm0
push eax
push edi
movlpd qword [esp + 0x40], xmm0
call dword [ebx + 0x64]
test eax, eax
je 0x403110
mov eax, dword [ebp + 0x50]
cmp eax, dword [esp + 0x38]
ja 0x403110
push edi
push 0x1000000
push 2
pop eax
push eax
push 0
push 0
push 0xf001f
lea eax, [esp + 0x58]
push eax
call dword [ebx + 0x120]
push edi
mov esi, eax
call dword [ebx + 0x90]
test esi, esi
jne 0x403110
lea esi, [ebx + 0x625]
xor edi, edi
push 4
pop eax
push eax
push edi
push 2
pop eax
push eax
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
call dword [ebx + 0x70]
push eax
push dword [esp + 0x64]
call dword [ebx + 0x124]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 0x3c]
add edi, ecx
mov dword [esp + 0x1c], edi
test eax, eax
je 0x402a29
cmp eax, 0x40000003
jne 0x403110
test ecx, ecx
je 0x403110
cmp byte [esi], 0
je 0x402a81
lea eax, [esp + 0x30]
push eax
push 4
pop esi
push esi
push dword [esp + 0x34]
push ecx
call dword [ebx + 0x48]
push esi
push 0x3000
push dword [ebp + 0x54]
push 0
call dword [ebx + 0x3c]
push dword [ebp + 0x54]
mov esi, eax
push dword [esp + 0x14]
mov dword [esp + 0x50], esi
push esi
call fcn.0040250e
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
xor al, al
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
jmp 0x402a89
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
push dword [ebp + 0x54]
push dword [esp + 0x38]
push ecx
call fcn.0040250e
mov eax, dword [esp + 0x1c]
xor ecx, ecx
and dword [esp + 0x20], 0
add esp, 0xc
mov dword [edi + 0x34], eax
movzx eax, word [edi + 0x14]
add eax, 0x18
add eax, edi
mov dword [esp + 0x38], eax
cmp cx, word [edi + 6]
jae 0x402afc
mov ebx, dword [esp + 0x14]
lea edi, [eax + 0x10]
mov ebp, dword [esp + 0x1c]
push dword [edi]
mov eax, dword [edi + 4]
mov esi, dword [edi - 4]
add eax, dword [esp + 0x38]
add esi, dword [esp + 0x14]
push eax
push esi
call fcn.0040250e
movzx eax, byte [esi]
lea edi, [edi + 0x28]
add esp, 0xc
mov dword [edi - 0x30], eax
movzx eax, word [ebp + 6]
inc ebx
cmp ebx, eax
jb 0x402ac5
mov ebx, dword [esp + 0x354]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov edi, esi
sub edi, dword [ebp + 0x34]
mov edx, dword [esp + 0x44]
test edx, edx
je 0x402bd0
test edi, edi
je 0x402bd0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + esi]
add eax, edx
mov dword [esp + 0x28], eax
add eax, esi
cmp ecx, eax
jmp 0x402bc6
mov eax, dword [ecx + 4]
test eax, eax
je 0x402bd0
lea edx, [ecx + 8]
jmp 0x402bb2
movzx edx, word [edx]
mov eax, dword [esp + 0x20]
mov ecx, edx
and ecx, 0xfff
add ecx, dword [eax]
mov eax, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x50]
jae 0x402ba2
shr dx, 0xc
cmp dx, 0xa
je 0x402b71
push 3
pop eax
cmp dx, ax
jne 0x402b76
add dword [ecx + esi], edi
jmp 0x402b93
xor eax, eax
inc eax
cmp dx, ax
jne 0x402b85
mov eax, edi
shr eax, 0x10
jmp 0x402b90
push 2
pop eax
cmp dx, ax
jne 0x402b99
movzx eax, di
add dword [ecx + esi], eax
mov esi, dword [esp + 0x10]
jmp 0x402ba2
test dx, dx
jne 0x4030b5
mov edx, dword [esp + 0x14]
push 2
pop ecx
add edx, ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
add eax, ecx
mov dword [esp + 0x14], edx
cmp edx, eax
jne 0x402b45
mov eax, dword [esp + 0x28]
mov ecx, edx
add eax, esi
cmp edx, eax
mov dword [esp + 0x20], ecx
jb 0x402b35
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x402c96
lea edi, [eax + esi]
cmp dword [edi + 0xc], 0
mov dword [esp + 0x18], edi
je 0x402c96
mov eax, dword [edi + 0xc]
add eax, esi
push eax
push ebx
call fcn.00403579
mov esi, dword [esp + 0x18]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x28], eax
add edx, esi
mov eax, dword [edi]
add eax, esi
mov dword [esp + 0x30], edx
pop ecx
pop ecx
mov dword [esp + 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x402c81
mov edi, dword [esp + 0x20]
mov ebp, edx
jns 0x402c2d
push ecx
push 0
jmp 0x402c57
mov eax, dword [esp + 0x358]
add esi, 2
add esi, ecx
cmp dword [eax + 4], 0
je 0x402c54
push esi
push ebx
call fcn.00401ea4
pop ecx
pop ecx
test eax, eax
je 0x402c54
mov eax, dword [ebx + 0x108]
jmp 0x402c61
push 0
push esi
push edi
push ebx
call fcn.00403617
add esp, 0x10
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push 4
pop ecx
add eax, ecx
add ebp, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
jne 0x402c26
mov edi, dword [esp + 0x18]
add edi, 0x14
mov dword [esp + 0x18], edi
cmp dword [edi + 0xc], 0
jne 0x402bf3
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xe0]
test eax, eax
je 0x402d3f
lea edi, [eax + 4]
add edi, esi
mov dword [esp + 0x18], edi
mov eax, dword [edi]
test eax, eax
je 0x402d3f
add eax, esi
push eax
push ebx
call fcn.00403579
mov esi, dword [esp + 0x18]
mov dword [esp + 0x28], eax
pop ecx
pop ecx
test eax, eax
je 0x402d2e
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
add ecx, esi
add edx, esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edx
mov eax, dword [ecx]
test eax, eax
je 0x402d2e
mov edi, dword [esp + 0x20]
mov ebp, ecx
jns 0x402cf6
xor ecx, ecx
jmp 0x402cfb
lea ecx, [esi + 2]
add ecx, eax
xor edx, edx
test eax, eax
cmovns eax, edx
push eax
push ecx
push edi
push ebx
call fcn.00403617
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov dword [ecx], eax
mov esi, dword [esp + 0x10]
push 4
pop eax
add ebp, eax
add ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebp]
test eax, eax
jne 0x402cf0
mov edi, dword [esp + 0x18]
add edi, 0x20
mov dword [esp + 0x18], edi
mov eax, dword [edi]
test eax, eax
jne 0x402cbb
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x54]
push 0x3e
pop ecx
push 4
mov eax, dword [eax + 0x28]
add eax, esi
mov esi, ebp
mov dword [esp + 0x18], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x5c]
shr eax, 0x10
imul esi, eax, 0x28
push 0x3000
push esi
push 0
call dword [ebx + 0x3c]
push esi
push dword [esp + 0x3c]
mov edi, eax
push edi
mov dword [esp + 0x24], edi
call fcn.0040250e
xor eax, eax
add esp, 0xc
inc eax
cmp dword [ebx + 0x574], eax
jne 0x402dc8
cmp byte [ebx + 0x625], 0
jne 0x402db0
mov ecx, dword [ebp + 0x54]
xor al, al
mov edi, dword [esp + 0x10]
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x34]
mov ecx, dword [ebp + 0x54]
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
jmp 0x402dc8
mov eax, dword [esp + 0x48]
test eax, eax
je 0x402dc8
push dword [ebp + 0x54]
push eax
push dword [esp + 0x18]
call fcn.0040250e
add esp, 0xc
cmp byte [ebx + 0x625], 0
jne 0x402e24
push dword [esp + 0x10]
call dword [ebx + 0x70]
push eax
call dword [ebx + 0x128]
test eax, eax
jne 0x403110
xor ecx, ecx
cmp dword [esp + 0x44], ecx
je 0x402df3
mov dword [esp + 0x10], ecx
push 0x80
push ecx
push 2
pop eax
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x2c]
push eax
call dword [ebx + 0x70]
push eax
push dword [esp + 0x64]
call dword [ebx + 0x124]
test eax, eax
jne 0x403110
lea eax, [esp + 0x30]
push eax
push 8
push dword [esp + 0x34]
push dword [esp + 0x1c]
call dword [ebx + 0x48]
movzx ecx, word [esp + 0x5a]
xor eax, eax
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x402ef4
mov esi, dword [esp + 0x38]
add edi, 0xc
mov edx, dword [edi + 0x18]
mov ebp, edx
mov ecx, edx
shr ebp, 0x1e
shr edx, 0x1d
shr ecx, 0x1f
and edx, 1
test ecx, edx
jne 0x402edf
test ebp, edx
je 0x402e6f
push 0x20
jmp 0x402e9e
mov eax, edx
xor eax, 1
mov dword [esp + 0x38], eax
and eax, ecx
test ebp, eax
je 0x402e8c
cmp byte [ebx + 0x625], 0
push 8
pop esi
push 4
jmp 0x402ea9
xor eax, eax
inc eax
xor ecx, eax
mov eax, ebp
xor eax, 1
and eax, ecx
test edx, eax
je 0x402ea1
push 0x10
pop esi
jmp 0x402ead
and ecx, dword [esp + 0x38]
test ebp, ecx
push 2
pop eax
cmovne esi, eax
mov edx, dword [esp + 0x10]
mov ecx, dword [edi]
add edx, ecx
movzx eax, word [esp + 0x5a]
dec eax
cmp dword [esp + 0x24], eax
jae 0x402ec8
mov eax, dword [edi + 0x28]
sub eax, ecx
jmp 0x402ecb
mov eax, dword [edi + 4]
and dword [esp + 0x30], 0
lea ecx, [esp + 0x30]
push ecx
push esi
push eax
push edx
call dword [ebx + 0x48]
mov eax, dword [esp + 0x24]
movzx ecx, word [esp + 0x5a]
inc eax
add edi, 0x28
mov dword [esp + 0x24], eax
cmp eax, ecx
jb 0x402e50
lea eax, [esp + 0x30]
xor edi, edi
push eax
push 2
pop eax
push eax
push dword [esp + 0x88]
mov dword [esp + 0x3c], edi
push dword [esp + 0x1c]
call dword [ebx + 0x48]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + 0xc0]
test esi, esi
je 0x402f4d
mov esi, dword [esi + ecx + 0xc]
test esi, esi
je 0x402f4d
mov eax, dword [esi]
test eax, eax
je 0x402f4d
push 4
pop ebx
push edi
push 1
push ecx
call eax
mov ecx, dword [esp + 0x10]
add esi, ebx
mov eax, dword [esi]
test eax, eax
jne 0x402f34
mov ebx, dword [esp + 0x354]
mov ebp, dword [esp + 0x358]
push 3
pop eax
cmp dword [ebp], eax
jne 0x403048
xor eax, eax
inc eax
push edi
push eax
mov eax, dword [esp + 0x84]
push ecx
add eax, ecx
call eax
lea edx, [ebp + 0x30c]
cmp byte [edx], 0
mov dword [esp + 0x38], edx
je 0x40309d
mov ecx, dword [esp + 0xcc]
mov esi, dword [esp + 0x10]
test ecx, ecx
je 0x4030a1
mov edi, dword [ecx + esi + 0x18]
test edi, edi
je 0x4030a1
mov eax, dword [ecx + esi + 0x1c]
lea ebp, [edi - 1]
add eax, esi
mov dword [esp + 0x44], eax
mov eax, dword [ecx + esi + 0x20]
mov ecx, dword [ecx + esi + 0x24]
add eax, esi
add ecx, esi
mov dword [esp + 0x28], ecx
lea ebp, [eax + ebp*4]
mov eax, dword [ebp]
push edx
add eax, esi
push eax
call fcn.00403501
pop ecx
pop ecx
test eax, eax
je 0x402fe9
push 4
pop eax
sub ebp, eax
sub edi, 1
je 0x4030b5
mov edx, dword [esp + 0x38]
jmp 0x402fc3
mov eax, dword [esp + 0x28]
movzx eax, word [eax + edi*2 - 2]
mov edi, dword [esp + 0x44]
mov edi, dword [edi + eax*4]
add edi, esi
je 0x4030b5
mov ebp, dword [esp + 0x358]
lea esi, [ebp + 0x40c]
cmp byte [esi], 0
je 0x403044
cmp dword [ebp + 0x50c], 0
je 0x40302e
lea eax, [esp + 0x14c]
push eax
push esi
push ebx
call fcn.00403528
add esp, 0xc
cmp dword [ebp + 0x50c], 0
lea eax, [esp + 0x14c]
cmove eax, esi
push eax
call edi
jmp 0x40309d
call edi
jmp 0x40309d
lea eax, [ebp + 0x40c]
cmp byte [eax], 0
je 0x403073
lea ecx, [esp + 0x14c]
push ecx
push eax
push ebx
call fcn.00403528
lea eax, [esp + 0x158]
push eax
push ebx
call fcn.004032d7
add esp, 0x14
cmp dword [ebp + 4], edi
je 0x403090
push edi
push edi
push edi
push dword [esp + 0x20]
push edi
push edi
call dword [ebx + 0x5c]
test eax, eax
je 0x40309d
push 0xffffffffffffffff
push eax
call dword [ebx + 0x58]
jmp 0x40309d
mov eax, dword fs:[0x18]
push dword [eax + 0x30]
call dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push 3
pop eax
cmp dword [ebx + 0x230], eax
jne 0x4030b5
push 0xffffffffffffffff
call dword [ebx + 0x4c]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4030fb
movzx eax, word [esp + 0x5a]
mov esi, 0xc000
imul eax, eax, 0x28
push esi
push eax
push dword [esp + 0x20]
call dword [ebx + 0x40]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4030e3
push esi
push dword [esp + 0xac]
push eax
call dword [ebx + 0x40]
push dword [esp + 0x10]
call dword [ebx + 0x70]
push eax
call dword [ebx + 0x128]
push dword [esp + 0x40]
call dword [ebx + 0x90]
mov ecx, dword [esp + 0x358]
xor al, al
mov edi, dword [esp + 0x34]
mov ecx, dword [ecx + 0x524]
rep stosb byte es:[edi], al
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x340
ret