Function at 0x402a17
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 + 0x28], edi
push edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], 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 0x40327b
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edi
mov eax, dword [ebp + 0xa4]
mov dword [esp + 0x44], eax
test eax, eax
jne 0x402a86
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 0x402ac0
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 0x40327a
jmp 0x402b3e
push edi
push edx
push edi
push ecx
push 0x80000000
push esi
call dword [ebx + 0x60]
mov edi, eax
cmp edi, 0xffffffff
je 0x40327a
test edi, edi
je 0x40327a
lea eax, [esp + 0x38]
xorps xmm0, xmm0
push eax
push edi
movlpd qword [esp + 0x40], xmm0
call dword [ebx + 0x64]
test eax, eax
je 0x40327a
mov eax, dword [ebp + 0x50]
cmp eax, dword [esp + 0x38]
ja 0x40327a
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 0x40327a
lea esi, [ebx + 0x625]
xor edi, edi
push 4
pop eax
push eax
push edi
push 2
pop eax
push eax
lea eax, [esp + 0x34]
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 + 0x20], edi
test eax, eax
je 0x402b82
cmp eax, 0x40000003
jne 0x40327a
test ecx, ecx
je 0x40327a
cmp byte [esi], 0
je 0x402bd9
lea eax, [esp + 0x30]
push eax
push 4
pop esi
push esi
push dword [esp + 0x30]
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 + 0x4c], esi
push esi
call fcn.00403d59
push dword [esp + 0x34]
push 0
push dword [esp + 0x24]
call fcn.00403d7d
mov ecx, dword [esp + 0x28]
add esp, 0x18
jmp 0x402be1
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], eax
push dword [ebp + 0x54]
push dword [esp + 0x38]
push ecx
call fcn.00403d59
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 0x402c58
mov ebx, dword [esp + 0x14]
lea edi, [eax + 0x10]
mov ebp, dword [esp + 0x20]
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.00403d59
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 0x402c1d
mov ebx, dword [esp + 0x354]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, edx
sub eax, dword [ebp + 0x34]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x402d28
test eax, eax
je 0x402d28
mov eax, dword [edi + 0xa0]
lea edi, [eax + edx]
add eax, ecx
mov dword [esp + 0x14], eax
add eax, edx
cmp edi, eax
jae 0x402d28
mov eax, dword [edi + 4]
test eax, eax
je 0x402d28
lea ecx, [edi + 8]
jmp 0x402d0e
movzx esi, word [ecx]
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 0xfff
add ecx, dword [edi]
cmp ecx, dword [eax + 0x50]
jae 0x402d02
shr si, 0xc
cmp si, 0xa
je 0x402cca
push 3
pop eax
cmp si, ax
jne 0x402cd0
mov eax, dword [esp + 0x18]
jmp 0x402cf0
xor eax, eax
inc eax
cmp si, ax
jne 0x402ce1
mov eax, dword [esp + 0x18]
shr eax, 0x10
jmp 0x402cf0
push 2
pop eax
cmp si, ax
jne 0x402cf9
mov eax, dword [esp + 0x18]
movzx eax, ax
add dword [ecx + edx], eax
mov edx, dword [esp + 0x10]
jmp 0x402d02
test si, si
jne 0x403219
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
push 2
pop esi
add ecx, esi
add eax, edi
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jne 0x402ca2
mov eax, dword [esp + 0x14]
mov edi, ecx
add eax, edx
cmp ecx, eax
jb 0x402c92
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x402dfe
lea esi, [eax + edx]
cmp dword [esi + 0xc], 0
mov dword [esp + 0x14], esi
je 0x402dfe
mov eax, dword [esi + 0xc]
add eax, edx
push eax
push ebx
call fcn.00403695
mov edx, dword [esp + 0x18]
mov edi, dword [esi + 0x10]
mov dword [esp + 0x34], eax
add edi, edx
mov eax, dword [esi]
add eax, edx
mov dword [esp + 0x20], edi
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x402de9
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x358]
jns 0x402d91
push ecx
push 0
push ebp
push ebx
call fcn.00403733
jmp 0x402dc3
lea edi, [edx + 2]
add edi, ecx
cmp dword [esi + 4], 0
je 0x402db5
push edi
push ebx
call fcn.00402026
pop ecx
pop ecx
test eax, eax
je 0x402db5
mov eax, dword [ebx + 0x108]
mov edi, dword [esp + 0x18]
jmp 0x402dc6
push 0
push edi
push ebp
push ebx
call fcn.00403733
mov edi, dword [esp + 0x28]
add esp, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push 4
pop ecx
add eax, ecx
add edi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov ecx, dword [eax]
test ecx, ecx
jne 0x402d83
mov esi, dword [esp + 0x14]
add esi, 0x14
mov dword [esp + 0x14], esi
cmp dword [esi + 0xc], 0
jne 0x402d4b
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xe0]
test eax, eax
je 0x402e9c
lea esi, [eax + 4]
add esi, edx
mov dword [esp + 0x1c], esi
mov eax, dword [esi]
test eax, eax
je 0x402e9c
add eax, edx
push eax
push ebx
call fcn.00403695
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
pop ecx
pop ecx
test eax, eax
je 0x402e8b
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 8]
add edi, edx
add ecx, edx
mov dword [esp + 0x14], ecx
mov eax, dword [edi]
test eax, eax
je 0x402e8b
mov ebp, dword [esp + 0x2c]
push 4
pop esi
jns 0x402e57
xor ecx, ecx
jmp 0x402e5c
lea ecx, [edx + 2]
add ecx, eax
xor edx, edx
test eax, eax
cmovns eax, edx
push eax
push ecx
push ebp
push ebx
call fcn.00403733
mov ecx, dword [esp + 0x24]
add edi, esi
add esp, 0x10
mov dword [ecx], eax
add ecx, esi
mov eax, dword [edi]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x402e51
mov esi, dword [esp + 0x1c]
add esi, 0x20
mov dword [esp + 0x1c], esi
mov eax, dword [esi]
test eax, eax
jne 0x402e1f
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
lea edi, [esp + 0x54]
push 0x3e
pop ecx
mov esi, ebp
mov eax, dword [eax + 0x28]
add eax, edx
mov dword [esp + 0x14], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x58]
shr eax, 0x10
imul esi, eax, 0x28
push 4
push 0x3000
push esi
push 0
call dword [ebx + 0x3c]
push esi
push dword [esp + 0x3c]
mov edi, eax
push edi
mov dword [esp + 0x38], edi
call fcn.00403d59
xor eax, eax
add esp, 0xc
inc eax
cmp dword [ebx + 0x574], eax
jne 0x402f2c
cmp byte [ebx + 0x625], 0
jne 0x402f14
push dword [ebp + 0x54]
push 0
push dword [esp + 0x18]
call fcn.00403d7d
push dword [ebp + 0x54]
push 0
push dword [esp + 0x48]
call fcn.00403d7d
add esp, 0x18
jmp 0x402f2c
mov eax, dword [esp + 0x44]
test eax, eax
je 0x402f2c
push dword [ebp + 0x54]
push eax
push dword [esp + 0x18]
call fcn.00403d59
add esp, 0xc
cmp byte [ebx + 0x625], 0
jne 0x402f8b
push dword [esp + 0x10]
call dword [ebx + 0x70]
push eax
call dword [ebx + 0x128]
test eax, eax
jne 0x40327a
cmp dword [esp + 0x48], eax
je 0x402f55
and dword [esp + 0x10], eax
and dword [esp + 0x28], 0
push 0x80
push 0
push 2
pop eax
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [ebx + 0x70]
push eax
push dword [esp + 0x64]
call dword [ebx + 0x124]
test eax, eax
jne 0x40327a
lea eax, [esp + 0x30]
push eax
push 8
push dword [esp + 0x30]
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 0x40305b
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 0x403046
test ebp, edx
je 0x402fd6
push 0x20
jmp 0x403005
mov eax, edx
xor eax, 1
mov dword [esp + 0x38], eax
and eax, ecx
test ebp, eax
je 0x402ff3
cmp byte [ebx + 0x625], 0
push 8
pop esi
push 4
jmp 0x403010
xor eax, eax
inc eax
xor ecx, eax
mov eax, ebp
xor eax, 1
and eax, ecx
test edx, eax
je 0x403008
push 0x10
pop esi
jmp 0x403014
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 0x40302f
mov eax, dword [edi + 0x28]
sub eax, ecx
jmp 0x403032
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 0x402fb7
and dword [esp + 0x30], 0
lea eax, [esp + 0x30]
push eax
push 2
pop eax
push eax
push dword [esp + 0x88]
push dword [esp + 0x1c]
call dword [ebx + 0x48]
mov eax, dword [esp + 0x20]
xor edi, edi
mov ecx, dword [esp + 0x10]
inc edi
mov esi, dword [eax + 0xc0]
test esi, esi
je 0x4030b6
mov esi, dword [esi + ecx + 0xc]
test esi, esi
je 0x4030b6
mov eax, dword [esi]
test eax, eax
je 0x4030b6
push 4
pop ebx
push 0
push edi
push ecx
call eax
mov ecx, dword [esp + 0x10]
add esi, ebx
mov eax, dword [esi]
test eax, eax
jne 0x40309d
mov ebx, dword [esp + 0x354]
mov ebp, dword [esp + 0x358]
push 3
pop eax
cmp dword [ebp], eax
jne 0x4031aa
mov eax, dword [esp + 0x7c]
push 0
push edi
push ecx
add eax, ecx
call eax
cmp byte [ebp + 0x30c], 0
je 0x403201
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0x10]
test ecx, ecx
je 0x403205
mov esi, dword [ecx + edx + 0x18]
test esi, esi
je 0x403205
mov eax, dword [ecx + edx + 0x20]
lea edi, [esi - 1]
mov ebp, dword [ecx + edx + 0x1c]
add eax, edx
mov ecx, dword [ecx + edx + 0x24]
add ebp, edx
add ecx, edx
mov dword [esp + 0x38], ecx
lea edi, [eax + edi*4]
mov ecx, dword [esp + 0x358]
mov eax, dword [edi]
add ecx, 0x30c
add eax, edx
push ecx
push eax
call fcn.00403d92
mov edx, dword [esp + 0x18]
pop ecx
pop ecx
test eax, eax
je 0x40314e
push 4
pop eax
sub edi, eax
sub esi, 1
jne 0x40311d
jmp 0x403219
mov eax, dword [esp + 0x38]
movzx eax, word [eax + esi*2 - 2]
mov esi, dword [ebp + eax*4]
add esi, edx
je 0x403219
mov ebp, dword [esp + 0x358]
lea edi, [ebp + 0x40c]
cmp byte [edi], 0
je 0x4031a6
cmp dword [ebp + 0x50c], 0
je 0x403190
lea eax, [esp + 0x14c]
push eax
push edi
push ebx
call fcn.00403670
add esp, 0xc
cmp dword [ebp + 0x50c], 0
lea eax, [esp + 0x14c]
cmove eax, edi
push eax
call esi
jmp 0x403201
call esi
jmp 0x403201
lea eax, [ebp + 0x40c]
cmp byte [eax], 0
je 0x4031d5
lea ecx, [esp + 0x14c]
push ecx
push eax
push ebx
call fcn.00403670
lea eax, [esp + 0x158]
push eax
push ebx
call fcn.00403448
add esp, 0x14
xor eax, eax
cmp dword [ebp + 4], eax
je 0x4031f4
push eax
push eax
push eax
push dword [esp + 0x20]
push eax
push eax
call dword [ebx + 0x5c]
test eax, eax
je 0x403201
push 0xffffffffffffffff
push eax
call dword [ebx + 0x58]
jmp 0x403201
mov eax, dword fs:[0x18]
push dword [eax + 0x30]
call dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push 3
pop eax
cmp dword [ebx + 0x230], eax
jne 0x403219
push 0xffffffffffffffff
call dword [ebx + 0x4c]
mov edx, dword [esp + 0x10]
test edx, edx
je 0x40325f
movzx eax, word [esp + 0x5a]
mov esi, 0xc000
imul eax, eax, 0x28
push esi
push eax
push dword [esp + 0x34]
call dword [ebx + 0x40]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x403247
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 eax, dword [esp + 0x358]
push dword [eax + 0x524]
push 0
push dword [esp + 0x3c]
call fcn.00403d7d
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x340
ret