Function at 0x4107f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497e6d
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 0x4108b3
test edx, edx
jne 0x410858
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xa4]
mov eax, dword [eax + 0xa8]
cmp ecx, 0xa
jne 0x410891
mov edx, 4
mov dword [0x4bfe6c], edx
test ebx, ebx
je 0x410b73
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x410865
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x44], edi
je 0x410b73
xor eax, eax
test edi, edi
je 0x4108c4
cmp word [ebx + eax*2], 0x2d
je 0x4108bb
inc eax
cmp eax, edi
jb 0x410883
jmp 0x4108bc
cmp ecx, 6
jne 0x4108a9
cmp eax, 3
jne 0x41089f
mov edx, eax
jmp 0x410852
add eax, 0xffffffff
jne 0x4108a9
lea edx, [eax + 2]
jmp 0x410852
mov dword [0x4bfe6c], 1
or eax, 0xffffffff
jmp 0x410b75
inc eax
cmp edi, eax
je 0x410b73
cmp edx, 4
je 0x4108d1
lea ebx, [ebx + eax*2]
sub edi, eax
mov dword [ebp - 0x34], ebx
xor bl, bl
xor eax, eax
test edi, edi
je 0x4108fd
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx + edi*2]
nop
movzx edx, word [ecx]
test bl, bl
jne 0x4108f0
cmp edx, 0x2e
jne 0x4108f5
mov bl, 1
jmp 0x4108f5
cmp edx, 0x2d
je 0x4108fd
inc eax
sub ecx, 2
cmp eax, edi
jb 0x4108e0
mov ebx, dword [ebp - 0x34]
sub edi, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], ebx
je 0x410b73
cmp edi, eax
je 0x410b73
mov ecx, dword fs:[0x30]
mov eax, dword [0x4bfe6c]
sub eax, 2
je 0x410e48
sub eax, 1
je 0x410c79
sub eax, 1
jne 0x410b73
mov edi, dword [ecx + 0x38]
mov dword [ebp - 0x4c], edi
test ebx, ebx
je 0x410b70
cmp word [ebx], ax
je 0x410b70
test edi, edi
je 0x410b70
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x44], edx
jbe 0x410987
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 0x410970
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 0x410b70
test eax, eax
je 0x410b70
mov ecx, dword [edi + 0xc]
xor esi, esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x5c], ecx
test ecx, ecx
je 0x410b70
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 0x410bdd
ja 0x410b70
mov eax, dword [ebp - 0x58]
cmp dword [eax], ecx
ja 0x410b70
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 0x410a60
test eax, eax
je 0x410a60
movzx eax, word [edi]
cmp ax, si
je 0x410a4d
mov ecx, eax
cmp ax, dx
mov edx, ecx
jae 0x410a29
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 0x410a43
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp dx, cx
jne 0x410a60
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 0x410a00
movzx eax, word [edi]
mov edi, pe_nt_image_headers32
mov ecx, eax
mov edx, eax
cmp ax, di
jae 0x410a7d
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 0x410a95
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp edx, ecx
je 0x410b9b
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 0x410b1e
test eax, eax
je 0x410b1e
movzx eax, word [edi]
cmp ax, si
je 0x410b0b
mov edx, pe_nt_image_headers32
mov ecx, eax
cmp ax, dx
mov edx, ecx
jae 0x410aee
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 0x410b06
lea ecx, [esi - 0x41]
or eax, 0x20
cmp ecx, 0x19
cmova eax, esi
cmp dx, ax
jne 0x410b1e
mov eax, dword [ebp - 0x38]
add edi, 2
dec eax
add ebx, 2
mov dword [ebp - 0x38], eax
cmp word [edi], 0
jne 0x410ac0
movzx eax, word [edi]
mov edi, pe_nt_image_headers32
mov ecx, eax
mov edx, eax
cmp ax, di
jae 0x410b3b
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 0x410b53
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp edx, ecx
je 0x410b91
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 0x410ab0
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.0046e348
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], ecx
je 0x410b70
jmp 0x410b9e
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 0x410bcf
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
nop dword [eax + eax]
mov edx, dword [eax - 4]
test edx, edx
jne 0x410bf7
sub eax, 0x14
sub ecx, 1
jne 0x410bc0
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 0x4109c5
jmp 0x410b70
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 0x41100a
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.00413120
lea ecx, [ebx*2 + 2]
mov esi, eax
mov eax, edi
cmp ecx, 0x1000
jb 0x410c6a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411016
push ecx
push edi
call fcn.0046e38b
add esp, 8
jmp 0x410b73
mov esi, dword [ecx + 0x38]
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x410b70
lea eax, [esi + 0x10]
test eax, eax
je 0x410b70
cmp dword [esi + 0xc], 0
lea edx, [edi + edi]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], 0
jbe 0x410b70
lea ecx, [eax + 8]
mov dword [ebp - 0x2c], ecx
nop
mov eax, dword [ecx]
test eax, eax
je 0x410dac
cmp edx, eax
ja 0x410dac
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 0x410d40
nop dword [eax]
movzx esi, word [ebx]
test si, si
je 0x410d40
test eax, eax
je 0x410d40
movzx eax, word [edi]
cmp ax, si
je 0x410d2d
mov edx, pe_nt_image_headers32
mov ecx, eax
cmp ax, dx
mov edx, ecx
jae 0x410d0e
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 0x410d28
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp dx, cx
jne 0x410d40
mov eax, dword [ebp - 0x40]
add edi, 2
dec eax
add ebx, 2
mov dword [ebp - 0x40], eax
cmp word [edi], 0
jne 0x410ce0
movzx eax, word [edi]
mov edi, pe_nt_image_headers32
mov ecx, eax
mov edx, eax
cmp ax, di
jae 0x410d5d
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 0x410d75
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
mov esi, dword [ebp - 0x3c]
cmp edx, ecx
jne 0x410da6
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0xc]
add edx, esi
je 0x410b70
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x410da6
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [eax + 4]
test edx, edx
jne 0x410dc7
sub eax, 0x14
sub ecx, 1
jne 0x410d97
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 0x410cb0
jmp 0x410b70
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 0x41100a
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.00413120
lea ecx, [ebx*2 + 2]
mov esi, eax
mov eax, edi
cmp ecx, 0x1000
jb 0x410e39
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411016
push ecx
push edi
call fcn.0046e38b
add esp, 8
jmp 0x410b73
mov esi, dword [ecx + 0x38]
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x410b70
lea eax, [esi + 8]
test eax, eax
je 0x410b70
cmp dword [esi + 4], 0
lea edx, [edi + edi]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], 0
jbe 0x410b70
lea ecx, [eax + 4]
mov dword [ebp - 0x2c], ecx
nop
mov eax, dword [ecx]
test eax, eax
je 0x410f7b
cmp edx, eax
ja 0x410f7b
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 0x410f10
nop dword [eax]
movzx esi, word [ebx]
test si, si
je 0x410f10
test eax, eax
je 0x410f10
movzx eax, word [edi]
cmp ax, si
je 0x410efd
mov edx, pe_nt_image_headers32
mov ecx, eax
cmp ax, dx
mov edx, ecx
jae 0x410ede
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 0x410ef8
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp dx, cx
jne 0x410f10
mov eax, dword [ebp - 0x40]
add edi, 2
dec eax
add ebx, 2
mov dword [ebp - 0x40], eax
cmp word [edi], 0
jne 0x410eb0
movzx eax, word [edi]
mov edi, pe_nt_image_headers32
mov ecx, eax
mov edx, eax
cmp ax, di
jae 0x410f2d
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 0x410f45
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
mov esi, dword [ebp - 0x3c]
cmp edx, ecx
jne 0x410f75
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 4]
add edx, esi
je 0x410b70
mov ecx, dword [edx]
test ecx, ecx
je 0x410f75
mov eax, ecx
shl eax, 4
add eax, edx
mov edx, dword [eax]
test edx, edx
jne 0x410f96
sub eax, 0x10
sub ecx, 1
jne 0x410f67
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 0x410e80
jmp 0x410b70
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 0x41100a
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.00413120
lea ecx, [ebx*2 + 2]
mov esi, eax
mov eax, edi
cmp ecx, 0x1000
jb 0x410c6a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411016
jmp 0x410c6a
call fcn.00413120
mov esi, eax
jmp 0x410b73
call fcn.00473154
int3