Function at 0x414a70
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x11c]
cmp eax, dword [ecx + 8]
jbe 0x415736
sub esp, 0x19c
lea eax, [0x7e71b8]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.00402390
mov eax, dword [0x7e71b8]
cmp eax, 1
jne 0x414abb
mov eax, 1
jmp 0x414ac1
cmp eax, 2
sete al
mov byte [0x7e73a4], al
test al, al
je 0x414ad2
mov eax, 1
jmp 0x414ad9
movzx eax, byte [0x7e73a5]
mov byte [0x7e73a0], al
mov eax, dword [0x7e7cd0]
mov ecx, dword [0x7e7cd4]
mov dword [0x7c13d8], eax
mov dword [0x7c13dc], ecx
nop
call fcn.00452720
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
mov edx, dword [esp + 4]
mov dword [esp + 0x30], edx
mov ebx, dword [esp]
mov dword [esp + 0x28], ebx
inc dword [ecx + 0x7c]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x18c], ecx
test byte [eax], al
mov dword [ecx + 0x78], 5
lea edi, [ecx + 0x74]
mov dword [esp + 0x198], edi
mov eax, dword [0x7e73a0]
test eax, eax
jne 0x414b52
lea eax, [0x58ca11]
mov dword [ecx + 0x74], eax
jmp 0x414b5d
lea eax, [0x58ca11]
call fcn.004518b0
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov dword [esp + 0x194], eax
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x9d], 2
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x50]
mov dword [esp + 0x190], ecx
mov dword [esp], ecx
mov dword [esp + 4], 2
mov dword [esp + 8], 4
call fcn.00431870
mov eax, dword [esp + 0x190]
mov byte [eax + 0x64], 6
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
lea ecx, [0x415740]
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xcc], ecx
lea ecx, [esp + 0xc8]
mov dword [esp], ecx
call fcn.00450370
lea eax, [0x6f67c0]
mov dword [esp], eax
call fcn.00450370
mov eax, dword [esp + 0x194]
mov eax, dword [eax + 0x18]
mov byte [eax + 0x9d], 0
mov eax, dword [esp + 0x190]
mov dword [esp], eax
mov dword [esp + 4], 4
mov dword [esp + 8], 2
call fcn.00431870
movzx eax, byte [0x7cb7c8]
test al, al
je 0x414c70
mov byte [esp], 8
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00447830
mov ecx, dword [esp + 0x18c]
mov dword [ecx + 0x78], 0
mov edx, dword [0x7e73a0]
test edx, edx
jne 0x414c91
mov dword [ecx + 0x74], 0
jmp 0x414c9f
mov edi, dword [esp + 0x198]
xor eax, eax
call fcn.004518b0
mov eax, dword [0x7e71b8]
test eax, eax
jne 0x41571f
mov eax, dword [0x7e8df8]
mov ecx, dword [0x7e8dfc]
mov dword [0x7ea3e8], eax
mov dword [0x7ea3ec], ecx
lea eax, [0x7e7c60]
mov dword [esp], eax
movsd xmm0, qword [esp + 0x1a0]
movsd qword [esp + 4], xmm0
call fcn.0041b180
mov eax, dword [0x7e7c78]
mov ecx, dword [0x7e7c7c]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0041f080
mov eax, dword [0x7e7cc0]
mov ecx, dword [0x7e7cc4]
mov edx, dword [0x7e7cc8]
mov ebx, dword [0x7e7ccc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edx
call fcn.0041ba10
nop
call fcn.00452720
mov eax, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 4]
mov dword [esp + 0x58], edx
call fcn.00452760
mov eax, dword [esp]
mov ecx, eax
mov eax, 0x3b9aca00
mul ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x54], ecx
add ecx, eax
mov dword [esp + 0x38], ecx
mov ebp, dword [0x7c13c8]
mov esi, dword [esp + 0x24]
mov edi, esi
sub esi, ebp
mov ecx, dword [0x7c13c0]
mov dword [esp + 0xb4], ecx
add ecx, esi
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
mov ebx, dword [0x7c13c4]
mov edx, dword [0x7c13cc]
mov dword [0x7c13c0], ecx
mov ecx, edi
sub edi, ebp
mov ebp, dword [esp + 0x58]
mov edi, ebp
sbb ebp, edx
mov edx, dword [esp + 0xb4]
add edx, esi
adc ebp, ebx
mov dword [0x7c13c4], ebp
mov edx, dword [esp + 0x2c]
mov dword [0x7c13bc], edx
mov dword [0x7c13b8], ecx
mov edx, dword [0x7c13c8]
sub ecx, edx
mov edx, dword [0x7c13cc]
lea ebp, [0x7eb1c0]
mov dword [esp], ebp
sbb edi, edx
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
call fcn.004072d0
lea eax, [0x7e8e68]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
imul eax, eax, 0x3b9aca00
mov ecx, dword [esp + 0xbc]
add eax, ecx
mov ecx, dword [esp + 0x54]
mov edx, ecx
sar ecx, 0x1f
mov ebx, dword [esp + 0xb8]
add edx, ebx
adc eax, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
call fcn.004023e0
lea eax, [0x7ea3e0]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
call fcn.004023e0
mov eax, dword [0x7e9e78]
and eax, 0xff
lea ecx, [0x7e8e78]
lea edx, [ecx + eax*8]
mov ebx, dword [0x7c13c0]
mov ebp, dword [0x7c13c4]
mov dword [edx], ebx
lea eax, [ecx + eax*8 + 4]
mov dword [eax], ebp
mov eax, dword [0x7e9e78]
and eax, 0xff
lea ecx, [0x7e9678]
lea edx, [ecx + eax*8]
mov ebx, dword [esp + 0x38]
mov dword [edx], ebx
lea eax, [ecx + eax*8 + 4]
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
mov eax, dword [0x7e8e70]
mov ecx, dword [0x7c13c0]
add eax, ecx
mov ecx, dword [0x7e8e74]
mov edx, dword [0x7c13c4]
mov dword [0x7e8e70], eax
adc ecx, edx
mov dword [0x7e8e74], ecx
mov eax, dword [0x7c13a8]
mov ecx, dword [0x7c13a0]
mov edx, eax
sub eax, ecx
mov dword [esp + 0xbc], eax
mov ebx, dword [0x7c1398]
mov dword [esp + 0xb0], ebx
mov ebp, eax
mov eax, ebx
mov esi, edx
mul ebp
mov dword [esp + 0xb8], edx
mov dword [esp + 0x44], eax
mov edi, dword [0x7e7d28]
mov dword [esp + 0xb4], edi
mov ebp, dword [0x7e7d30]
mov dword [esp + 0xac], ebp
add edi, ebp
mov dword [esp + 0xa8], edi
mov edx, dword [0x7e7d38]
mov dword [esp + 0xa4], edx
add edx, edi
mov dword [esp + 0x60], edx
mov edi, dword [0x7c13b8]
mov dword [esp + 0xa0], edi
mov ebp, dword [0x7c13b0]
mov dword [esp + 0x9c], ebp
sub edi, ebp
mov dword [esp + 0x98], edi
mov eax, edi
mul ebx
mov dword [esp + 0x94], edx
mov dword [esp + 0x5c], eax
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x44]
add edi, edx
mov dword [esp + 0x90], edi
add eax, edi
mov dword [esp + 0x70], eax
mov edi, dword [0x7c1370]
mov dword [esp + 0x8c], edi
add edi, eax
mov dword [esp + 0x88], edi
mov eax, dword [0x7c13ac]
mov edx, dword [0x7c13a4]
mov ebx, dword [0x7e7d2c]
mov dword [esp + 0x84], ebx
mov ebp, dword [0x7e7d34]
mov ebx, dword [0x7e7d3c]
mov dword [esp + 0x80], ebx
mov ebx, dword [0x7c13bc]
mov dword [esp + 0x7c], ebx
mov ebx, dword [0x7c13b4]
mov dword [esp + 0x78], ebx
mov ebx, dword [0x7c1374]
mov dword [esp + 0x74], ebx
mov dword [0x7c1370], edi
sub esi, ecx
sbb eax, edx
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xac]
add ecx, edx
mov ecx, dword [esp + 0x84]
adc ecx, ebp
mov edx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
add edx, ebp
mov edx, dword [esp + 0x80]
adc ecx, edx
mov edx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x9c]
sub edx, ebp
mov edx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
sbb edx, ebp
mov ebp, dword [esp + 0xb0]
mov esi, ebp
sar ebp, 0x1f
imul eax, esi
mov edi, dword [esp + 0xb8]
add eax, edi
mov edi, dword [esp + 0xbc]
imul edi, ebp
add eax, edi
mov dword [esp + 0xbc], eax
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x44]
add edi, ebx
adc ecx, eax
imul edx, esi
mov esi, dword [esp + 0x94]
add edx, esi
mov esi, dword [esp + 0x98]
imul esi, ebp
add edx, esi
mov dword [esp + 0xb8], edx
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x90]
add esi, ebp
adc ecx, edx
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x70]
add esi, edi
mov esi, dword [esp + 0x74]
adc esi, ecx
mov dword [0x7c1374], esi
mov ecx, dword [0x7c1c14]
mov dword [esp + 0xb4], ecx
mov edi, dword [esp + 0x24]
sub edi, ecx
mov dword [esp + 0xac], edi
mov edx, dword [0x7e71bc]
mov dword [esp + 0xb0], edx
mov eax, edi
mul edx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xa4], eax
mov ebp, dword [0x7c1c1c]
mov dword [esp + 0xa0], ebp
add ebp, eax
mov dword [esp + 0x40], ebp
mov ebx, dword [0x7c1c20]
mov dword [esp + 0x84], ebx
mov ebp, dword [0x7c1c18]
mov dword [esp + 0x80], ebp
mov dword [esp + 4], esi
mov esi, dword [esp + 0x88]
mov dword [esp], esi
call fcn.0044cc80
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xb4]
sub eax, ecx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x80]
sbb eax, ecx
mov ecx, dword [esp + 0xb0]
imul eax, ecx
sar ecx, 0x1f
mov edx, dword [esp + 0xac]
imul edx, ecx
mov ecx, dword [esp + 0xa8]
add ecx, edx
add eax, ecx
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
add ecx, edx
mov ecx, dword [esp + 0x84]
adc ecx, eax
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0xc0], xmm0
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0044cc80
movsd xmm0, qword [esp + 0xc0]
divsd xmm0, qword [esp + 8]
movsd qword [0x7e9e80], xmm0
mov dword [0x7c108c], 0
mov dword [0x7c1090], 0
movzx eax, byte [0x7c136c]
test al, al
je 0x4151e4
inc dword [0x7e9e7c]
nop
lea eax, [0x7c138c]
mov dword [esp], eax
call fcn.00408660
inc dword [0x7e9e78]
lea eax, [0x7c1390]
mov dword [esp], eax
call fcn.00435a00
nop
nop
lea eax, [0x7c138c]
mov dword [esp], eax
call fcn.00408860
call fcn.00426b00
lea eax, [0x7c1094]
mov dword [esp], eax
call fcn.0041dde0
mov eax, dword [esp + 4]
movzx ecx, byte [esp + 8]
test cl, cl
je 0x415709
mov dword [esp + 0xb4], eax
mov byte [esp + 0x23], cl
lea eax, [0x6f67c4]
mov dword [esp], eax
call fcn.00450370
call fcn.00426b70
call fcn.0041fbc0
lea eax, [0x6f67a8]
mov dword [esp], eax
call fcn.00450370
lea eax, [0x6f67cc]
mov dword [esp], eax
call fcn.00450370
lea eax, [0x7c1094]
mov dword [esp], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], eax
movzx eax, byte [esp + 0x23]
mov byte [esp + 8], al
call fcn.0041de60
mov eax, dword [0x7e755c]
test eax, eax
jle 0x415300
lea edi, [esp + 0xd4]
xor eax, eax
call fcn.00451aaa
call fcn.0042f970
mov ecx, dword [0x7c13a0]
mov edx, dword [0x7e72a0]
sub ecx, edx
mov edx, dword [0x7c13a4]
mov ebx, dword [0x7e72a4]
sbb edx, ebx
mov dword [esp + 4], edx
mov dword [esp], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xf4240
call fcn.0044cec0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, 0x17
jmp 0x41537a
lea eax, [0x5300b8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043de30
lea eax, [0x530098]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043de30
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x18c]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x415368
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x415368
mov dword [eax + 8], 0xfffffade
add esp, 0x19c
ret
mov ecx, dword [esp + 0xa4]
mov edx, edi
mov eax, ebx
test edx, edx
seta bl
xchg ebp, ebx
sete bl
xchg ebp, ebx
cmp ecx, 0xa
xchg esi, ebx
setae bl
xchg esi, ebx
and ebp, esi
or ebx, ebp
test bl, bl
jne 0x4153a1
cmp eax, 0x14
jl 0x41547c
mov dword [esp + 0x34], ecx
mov dword [esp + 0x64], eax
mov eax, edx
mov ebp, 0xcccccccd
mov esi, edx
mul ebp
shr edx, 3
lea edi, [edx + edx*4]
shl edi, 1
sub esi, edi
mov eax, 0x19999999
mov edi, edx
mul esi
mov dword [esp + 0xb4], edx
mov dword [esp + 0xac], eax
mov eax, ecx
mul ebp
shr edx, 3
mov eax, edx
add edx, 0
mov dword [esp + 0xa8], edx
mov ebx, dword [esp + 0xac]
add edx, ebx
lea ebx, [eax + eax*4]
shl ebx, 1
sub ecx, ebx
lea ebx, [esi + esi*2]
lea ebx, [ecx + ebx*2]
mov ecx, eax
mov eax, ebp
mov esi, edx
mul ebx
shr edx, 3
mov ebx, edx
add edx, esi
mov dword [esp + 0xa4], edx
mov eax, edx
mov ebp, 0xa
mul ebp
mov edx, dword [esp + 0x34]
sub edx, eax
add edx, 0x30
add ecx, 0
adc edi, 0
mov ebp, dword [esp + 0xa8]
mov eax, edx
mov edx, dword [esp + 0xac]
add ebp, edx
mov edx, dword [esp + 0xb4]
adc edi, edx
add ebx, esi
adc edi, 0
mov edx, dword [esp + 0x64]
cmp edx, 0x18
jae 0x4156fd
mov byte [esp + edx + 0xd4], al
lea ebx, [edx - 1]
cmp edx, 0x15
jne 0x41536f
mov byte [esp + edx + 0xd3], 0x2e
lea ebx, [edx - 2]
jmp 0x41536f
add ecx, 0x30
cmp eax, 0x18
jae 0x4156f3
mov byte [esp + eax + 0xd4], cl
lea ecx, [esp + 0x144]
mov dword [esp], ecx
lea ecx, [eax - 0x18]
neg ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
lea eax, [esp + eax + 0xd4]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00441d50
mov eax, dword [0x7c13a0]
mov ecx, dword [0x7c13a4]
mov dword [esp + 0x50], ecx
lea edi, [esp + 0xec]
mov edx, eax
xor eax, eax
call fcn.00451aaa
mov ecx, dword [0x7c13a8]
mov ebx, dword [0x7c13ac]
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf0], ebx
mov ecx, dword [0x7c13b0]
mov ebx, dword [0x7c13b4]
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], ebx
mov ecx, dword [0x7c13b8]
mov ebx, dword [0x7c13bc]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], ebx
xor ecx, ecx
mov ebx, dword [esp + 0x50]
jmp 0x4155a4
mov dword [esp + 0x6c], ecx
lea eax, [esp + ecx*8 + 0xec]
mov ebp, dword [eax]
mov dword [esp + 0x4c], ebp
sub ebp, edx
mov eax, dword [eax + 4]
mov dword [esp + 0x50], eax
lea edx, [esp + 0xd4]
mov dword [esp], edx
mov dword [esp + 4], 0x18
mov dword [esp + 8], 0x18
sbb eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebp
call fcn.00416490
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x124]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00441d50
mov eax, dword [esp + 0x6c]
lea ecx, [eax + 1]
xor eax, eax
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
cmp ecx, 3
jl 0x415531
lea edi, [esp + 0x164]
call fcn.00451aa6
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x164], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x168], ecx
mov ecx, dword [0x7e7d28]
mov edx, dword [0x7e7d2c]
mov dword [esp + 0x16c], ecx
mov dword [esp + 0x170], edx
mov ecx, dword [0x7e7d30]
mov edx, dword [0x7e7d38]
add ecx, edx
mov edx, dword [0x7e7d34]
mov ebx, dword [0x7e7d3c]
mov dword [esp + 0x174], ecx
adc edx, ebx
mov dword [esp + 0x178], edx
mov ecx, dword [0x7e7d40]
mov edx, dword [0x7e7d44]
mov dword [esp + 0x17c], ecx
mov dword [esp + 0x180], edx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x184], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x188], ecx
xor eax, eax
jmp 0x415694
lea eax, [esp + 0xd4]
mov dword [esp], eax
mov dword [esp + 4], 0x18
mov dword [esp + 8], 0x18
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
call fcn.00416490
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x104]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00441d50
mov eax, dword [esp + 0x68]
inc eax
cmp eax, 5
jge 0x4156b5
mov dword [esp + 0x68], eax
lea ecx, [esp + eax*8 + 0x164]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, 2
je 0x415649
cmp eax, 3
je 0x415649
jmp 0x415649
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
nop
movzx ecx, byte [eax + 0x8b]
lea edx, [ecx - 1]
mov byte [eax + 0x8b], dl
cmp cl, 1
jne 0x415300
nop
lea eax, [0x7e7180]
mov dword [esp], eax
call fcn.00408860
jmp 0x415300
mov ecx, 0x18
call fcn.00451930
mov eax, edx
mov ecx, 0x18
call fcn.00451930
lea eax, [0x5923c2]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
call fcn.0042e5b0
lea eax, [0x592d33]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call fcn.0042e5b0
nop
call fcn.00450480
jmp fcn.00414a70