Function at 0x4107c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497e5d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x34], ebx
mov edx, dword [0x4bfe6c]
or esi, 0xffffffff
cmp edx, 1
je 0x410883
test edx, edx
jne 0x410828
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xa4]
mov eax, dword [eax + 0xa8]
cmp ecx, 0xa
jne 0x410861
mov edx, 4
mov dword [0x4bfe6c], edx
test ebx, ebx
je 0x410b43
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x410835
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x44], edi
je 0x410b43
xor eax, eax
test edi, edi
je 0x410894
cmp word [ebx + eax*2], 0x2d
je 0x41088b
inc eax
cmp eax, edi
jb 0x410853
jmp 0x41088c
cmp ecx, 6
jne 0x410879
cmp eax, 3
jne 0x41086f
mov edx, eax
jmp 0x410822
add eax, 0xffffffff
jne 0x410879
lea edx, [eax + 2]
jmp 0x410822
mov dword [0x4bfe6c], 1
or eax, 0xffffffff
jmp 0x410b45
inc eax
cmp edi, eax
je 0x410b43
cmp edx, 4
je 0x4108a1
lea ebx, [ebx + eax*2]
sub edi, eax
mov dword [ebp - 0x34], ebx
xor bl, bl
xor eax, eax
test edi, edi
je 0x4108cd
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx + edi*2]
nop
movzx edx, word [ecx]
test bl, bl
jne 0x4108c0
cmp edx, 0x2e
jne 0x4108c5
mov bl, 1
jmp 0x4108c5
cmp edx, 0x2d
je 0x4108cd
inc eax
sub ecx, 2
cmp eax, edi
jb 0x4108b0
mov ebx, dword [ebp - 0x34]
sub edi, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], ebx
je 0x410b43
cmp edi, eax
je 0x410b43
mov ecx, dword fs:[0x30]
mov eax, dword [0x4bfe6c]
sub eax, 2
je 0x410e18
sub eax, 1
je 0x410c49
sub eax, 1
jne 0x410b43
mov edi, dword [ecx + 0x38]
mov dword [ebp - 0x4c], edi
test ebx, ebx
je 0x410b40
cmp word [ebx], ax
je 0x410b40
test edi, edi
je 0x410b40
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x44], edx
jbe 0x410957
mov esi, dword [edi + 0x18]
mov edi, dword [ebp - 0x44]
nop
mov eax, dword [ebp - 0x34]
imul ebx, esi
movzx ecx, word [eax + edx*2]
inc edx
add ebx, ecx
cmp edx, edi
jb 0x410940
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ebx
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
add ecx, edi
add eax, edi
mov dword [ebp - 0x48], ecx
test ecx, ecx
je 0x410b40
test eax, eax
je 0x410b40
mov ecx, dword [edi + 0xc]
xor esi, esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x5c], ecx
test ecx, ecx
je 0x410b40
add eax, 4
mov edx, pe_nt_image_headers32
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x30], eax
mov eax, dword [eax - 4]
cmp eax, ebx
jb 0x410bad
ja 0x410b40
mov eax, dword [ebp - 0x58]
cmp dword [eax], ecx
ja 0x410b40
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
lea eax, [eax + eax*2]
mov ebx, dword [ebx + eax*8 + 4]
mov eax, dword [ebp - 0x44]
add ebx, edi
mov edi, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x2c], eax
nop
movzx esi, word [ebx]
test si, si
je 0x410a30
test eax, eax
je 0x410a30
movzx eax, word [edi]
cmp ax, si
je 0x410a1d
mov ecx, eax
cmp ax, dx
mov edx, ecx
jae 0x4109f9
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
mov ecx, pe_nt_image_headers32
mov eax, esi
cmp ax, cx
mov ecx, esi
jae 0x410a13
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp dx, cx
jne 0x410a30
mov edx, pe_nt_image_headers32
mov eax, dword [ebp - 0x2c]
add edi, 2
dec eax
add ebx, 2
mov dword [ebp - 0x2c], eax
cmp word [edi], 0
jne 0x4109d0
movzx eax, word [edi]
mov edi, pe_nt_image_headers32
mov ecx, eax
mov edx, eax
cmp ax, di
jae 0x410a4d
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
movzx eax, word [ebx]
mov esi, eax
mov ecx, eax
cmp ax, di
jae 0x410a65
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp edx, ecx
je 0x410b6b
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
add eax, 4
mov dword [ebp - 0x3c], eax
nop dword [eax + eax]
mov ebx, dword [eax]
mov eax, dword [ebp - 0x44]
add ebx, dword [ebp - 0x4c]
dec eax
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
nop
movzx esi, word [ebx]
test si, si
je 0x410aee
test eax, eax
je 0x410aee
movzx eax, word [edi]
cmp ax, si
je 0x410adb
mov edx, pe_nt_image_headers32
mov ecx, eax
cmp ax, dx
mov edx, ecx
jae 0x410abe
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
mov eax, esi
mov ecx, pe_nt_image_headers32
cmp ax, cx
jae 0x410ad6
lea ecx, [esi - 0x41]
or eax, 0x20
cmp ecx, 0x19
cmova eax, esi
cmp dx, ax
jne 0x410aee
mov eax, dword [ebp - 0x38]
add edi, 2
dec eax
add ebx, 2
mov dword [ebp - 0x38], eax
cmp word [edi], 0
jne 0x410a90
movzx eax, word [edi]
mov edi, pe_nt_image_headers32
mov ecx, eax
mov edx, eax
cmp ax, di
jae 0x410b0b
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
movzx eax, word [ebx]
mov esi, eax
mov ecx, eax
cmp ax, di
jae 0x410b23
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp edx, ecx
je 0x410b61
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
inc ecx
add eax, 0x18
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x3c], eax
cmp ecx, dword [ebp - 0x5c]
jb 0x410a80
or esi, 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], ecx
je 0x410b40
jmp 0x410b6e
mov ecx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x4c]
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + eax*8 + 0x10]
mov ecx, dword [ecx + eax*8 + 0x14]
add edx, edi
test ecx, ecx
je 0x410b9f
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
nop dword [eax + eax]
mov edx, dword [eax - 4]
test edx, edx
jne 0x410bc7
sub eax, 0x14
sub ecx, 1
jne 0x410b90
mov esi, dword [ebp - 0x54]
mov edx, pe_nt_image_headers32
mov ebx, dword [ebp - 0x50]
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp - 0x30]
inc esi
add eax, 8
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x30], eax
cmp esi, ecx
jb 0x410995
jmp 0x410b40
mov dword [ebp - 0x28], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
mov eax, dword [eax - 8]
shr edx, 1
add eax, edi
push edx
push eax
call fcn.00403bf0
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
cmp ebx, 8
jb 0x410fda
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.004130f0
lea ecx, [ebx*2 + 2]
mov esi, eax
mov eax, edi
cmp ecx, 0x1000
jb 0x410c3a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410fe6
push ecx
push edi
call fcn.0046e37b
add esp, 8
jmp 0x410b43
mov esi, dword [ecx + 0x38]
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x410b40
lea eax, [esi + 0x10]
test eax, eax
je 0x410b40
cmp dword [esi + 0xc], 0
lea edx, [edi + edi]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], 0
jbe 0x410b40
lea ecx, [eax + 8]
mov dword [ebp - 0x2c], ecx
nop
mov eax, dword [ecx]
test eax, eax
je 0x410d7c
cmp edx, eax
ja 0x410d7c
mov ebx, dword [ecx - 4]
mov ecx, dword [ebp - 0x34]
add ebx, esi
mov eax, dword [ebp - 0x44]
mov edi, ecx
dec eax
mov dword [ebp - 0x40], eax
cmp word [ecx], 0
je 0x410d10
nop dword [eax]
movzx esi, word [ebx]
test si, si
je 0x410d10
test eax, eax
je 0x410d10
movzx eax, word [edi]
cmp ax, si
je 0x410cfd
mov edx, pe_nt_image_headers32
mov ecx, eax
cmp ax, dx
mov edx, ecx
jae 0x410cde
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
mov ecx, pe_nt_image_headers32
mov eax, esi
cmp ax, cx
mov ecx, esi
jae 0x410cf8
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp dx, cx
jne 0x410d10
mov eax, dword [ebp - 0x40]
add edi, 2
dec eax
add ebx, 2
mov dword [ebp - 0x40], eax
cmp word [edi], 0
jne 0x410cb0
movzx eax, word [edi]
mov edi, pe_nt_image_headers32
mov ecx, eax
mov edx, eax
cmp ax, di
jae 0x410d2d
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
movzx eax, word [ebx]
mov esi, eax
mov ecx, eax
cmp ax, di
jae 0x410d45
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
mov esi, dword [ebp - 0x3c]
cmp edx, ecx
jne 0x410d76
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0xc]
add edx, esi
je 0x410b40
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x410d76
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [eax + 4]
test edx, edx
jne 0x410d97
sub eax, 0x14
sub ecx, 1
jne 0x410d67
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
add ecx, 0x18
inc eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], eax
cmp eax, dword [esi + 0xc]
jb 0x410c80
jmp 0x410b40
mov dword [ebp - 0x28], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
shr edx, 1
add eax, esi
push edx
push eax
call fcn.00403bf0
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
cmp ebx, 8
jb 0x410fda
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.004130f0
lea ecx, [ebx*2 + 2]
mov esi, eax
mov eax, edi
cmp ecx, 0x1000
jb 0x410e09
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410fe6
push ecx
push edi
call fcn.0046e37b
add esp, 8
jmp 0x410b43
mov esi, dword [ecx + 0x38]
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x410b40
lea eax, [esi + 8]
test eax, eax
je 0x410b40
cmp dword [esi + 4], 0
lea edx, [edi + edi]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], 0
jbe 0x410b40
lea ecx, [eax + 4]
mov dword [ebp - 0x2c], ecx
nop
mov eax, dword [ecx]
test eax, eax
je 0x410f4b
cmp edx, eax
ja 0x410f4b
mov ebx, dword [ecx - 4]
mov ecx, dword [ebp - 0x34]
add ebx, esi
mov eax, dword [ebp - 0x44]
mov edi, ecx
dec eax
mov dword [ebp - 0x40], eax
cmp word [ecx], 0
je 0x410ee0
nop dword [eax]
movzx esi, word [ebx]
test si, si
je 0x410ee0
test eax, eax
je 0x410ee0
movzx eax, word [edi]
cmp ax, si
je 0x410ecd
mov edx, pe_nt_image_headers32
mov ecx, eax
cmp ax, dx
mov edx, ecx
jae 0x410eae
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
mov ecx, pe_nt_image_headers32
mov eax, esi
cmp ax, cx
mov ecx, esi
jae 0x410ec8
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp dx, cx
jne 0x410ee0
mov eax, dword [ebp - 0x40]
add edi, 2
dec eax
add ebx, 2
mov dword [ebp - 0x40], eax
cmp word [edi], 0
jne 0x410e80
movzx eax, word [edi]
mov edi, pe_nt_image_headers32
mov ecx, eax
mov edx, eax
cmp ax, di
jae 0x410efd
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
movzx eax, word [ebx]
mov esi, eax
mov ecx, eax
cmp ax, di
jae 0x410f15
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
mov esi, dword [ebp - 0x3c]
cmp edx, ecx
jne 0x410f45
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 4]
add edx, esi
je 0x410b40
mov ecx, dword [edx]
test ecx, ecx
je 0x410f45
mov eax, ecx
shl eax, 4
add eax, edx
mov edx, dword [eax]
test edx, edx
jne 0x410f66
sub eax, 0x10
sub ecx, 1
jne 0x410f37
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
add ecx, 0xc
inc eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], eax
cmp eax, dword [esi + 4]
jb 0x410e50
jmp 0x410b40
mov dword [ebp - 0x28], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov eax, dword [eax - 4]
shr edx, 1
add eax, esi
push edx
push eax
call fcn.00403bf0
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
cmp ebx, 8
jb 0x410fda
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.004130f0
lea ecx, [ebx*2 + 2]
mov esi, eax
mov eax, edi
cmp ecx, 0x1000
jb 0x410c3a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410fe6
jmp 0x410c3a
call fcn.004130f0
mov esi, eax
jmp 0x410b43
call fcn.00473144
int3