Function at 0x40e190
Capabilities:
Check for unmoving mouse cursor
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d2c21
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov eax, dword [0x50c48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50c48c
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0xa4], 0
mov eax, dword [0x50c48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50c48c
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov ebp, dword [esp + 0xac]
mov byte [esp + 0xa4], 1
add ebp, 0x14c
mov edi, 0x12
mov edi, edi
push 0x4e355c
xor ebx, ebx
mov eax, ebp
call fcn.00406770
mov eax, dword [ebp - 0x20]
push ebx
push eax
call dword [0x4d53dc]
lea esi, [ebp - 0x24]
call fcn.0042aec0
add ebp, 0x44
sub edi, 1
jne 0x40e210
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx + 0x8b0]
mov eax, dword [edx - 0xc]
xor ebp, ebp
cmp eax, ebp
jne 0x40ee33
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x2c]
cmp dword [ebp - 0xc], 0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
je 0x40e2af
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40e289
cmp dword [ebp - 8], 0
jl 0x40e61e
mov dword [ebp - 0xc], 0
mov word [ebp], 0
jmp 0x40e2af
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e29f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0xac]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
mov ecx, ebx
call fcn.004100e0
test eax, eax
mov ebp, dword [esp + 0x2c]
push 5
je 0x40e469
mov eax, edi
shl eax, 4
add eax, edi
lea ebx, [ebx + eax*4]
mov ecx, dword [ebx + 0x12c]
lea esi, [ebx + 0x128]
push ecx
call dword [0x4d53dc]
call fcn.0042aec0
test ebp, ebp
lea eax, [ebx + 0x14c]
jne 0x40e30a
xor ecx, ecx
jmp 0x40e31f
mov ecx, ebp
lea ebx, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40e310
sub ecx, ebx
sar ecx, 1
push ebp
mov ebx, ecx
call fcn.00406770
mov eax, dword [esi + 4]
lea edx, [esp + 0x68]
push edx
push eax
call dword [0x4d53a0]
lea ecx, [esp + 0x40]
xor ebx, ebx
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call dword [0x4d53c4]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x70]
push ecx
call dword [0x4d53f8]
mov edx, dword [esi + 4]
neg eax
sbb eax, eax
push 1
neg eax
push edx
mov dword [esi + 8], eax
call dword [0x4d53bc]
call fcn.0042aec0
cmp edi, ebx
jne 0x40e4b4
mov esi, dword [esp + 0x24]
lea edi, [ebp - 0x10]
add esi, 0xfffffff0
cmp edi, esi
mov dword [esp + 0x34], ebx
je 0x40e3de
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40e3d1
mov eax, dword [edi]
cmp eax, dword [esi]
jne 0x40e3d1
mov eax, edi
call fcn.00402a60
mov dword [esp + 0x38], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40e3c4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x38]
add ecx, 0x10
mov dword [esp + 0x24], ecx
jmp 0x40e3de
mov ebx, dword [ebp - 0xc]
push ebp
lea eax, [esp + 0x28]
call fcn.00406770
mov edx, dword [esp + 0xac]
mov esi, dword [edx + 0x8d8]
sub esi, 0x10
cmp edi, esi
je 0x40e442
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40e432
mov eax, dword [edi]
cmp eax, dword [esi]
jne 0x40e432
mov eax, edi
call fcn.00402a60
mov edi, eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40e420
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0xac]
add edi, 0x10
mov dword [ecx + 0x8d8], edi
jmp 0x40e442
mov ebx, dword [ebp - 0xc]
mov eax, edx
push ebp
add eax, 0x8d8
call fcn.00406770
mov eax, dword [esp + 0xac]
lea edx, [esp + 0x34]
push edx
push 0
push eax
push 0x40e140
push 0
push 0
call dword [0x4d52a0]
push eax
call dword [0x4d52d8]
jmp 0x40e4b4
mov ecx, edi
shl ecx, 4
add ecx, edi
lea ebx, [ebx + ecx*4]
mov edx, dword [ebx + 0x12c]
lea esi, [ebx + 0x128]
push edx
call dword [0x4d53dc]
call fcn.0042aec0
lea eax, [ebx + 0x14c]
push 0x4e355c
xor ebx, ebx
call fcn.00406770
mov eax, dword [esi + 4]
push ebx
push eax
mov dword [esi + 8], 3
call dword [0x4d53bc]
call fcn.0042aec0
mov eax, dword [esp + 0x30]
add eax, 1
cmp eax, 9
mov dword [esp + 0x30], eax
jl 0x40e25b
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
xor ebp, ebp
mov ecx, 0x50c48c
mov dword [esp + 0x18], ebp
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov byte [esp + 0xa4], 3
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
push ecx
mov ecx, 0x50c48c
mov dword [esp + 0x44], esp
mov esi, esp
call eax
add eax, 0x10
lea ecx, [ebp + 0xb]
lea edx, [esp + 0x5c]
mov dword [esi], eax
call fcn.004109e0
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
mov byte [esp + 0xa4], 4
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
xor ebx, ebx
xor edi, edi
xor esi, esi
mov edi, edi
cmp ecx, ebp
je 0x40e55d
sub edx, ecx
sar edx, 2
cmp esi, edx
jb 0x40e566
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x38]
lea eax, [ecx + esi*4]
mov ecx, dword [esp + 0xac]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00410020
mov ecx, dword [esp + 0x5c]
cmp ecx, ebp
je 0x40e595
mov edx, dword [esp + 0x60]
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40e5a2
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + esi*4]
cmp dword [eax - 0xc], 4
jge 0x40e5b0
add esi, 1
mov ebx, esi
add edi, 1
cmp edi, 9
jl 0x40e550
cmp ecx, ebp
je 0x40e5c7
mov eax, edx
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x40e5d4
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + ebx*4]
cmp dword [eax - 0xc], 4
jle 0x40e664
test ecx, ecx
je 0x40e5f0
mov eax, edx
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x40e5fd
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edi, dword [ecx + ebx*4]
cmp dword [edi - 0xc], 0
lea esi, [ecx + ebx*4]
mov ebx, dword [edi - 0x10]
lea eax, [edi - 0x10]
je 0x40e664
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40e638
cmp dword [edi - 8], 0
jge 0x40e628
push 0x80070057
call fcn.00402940
mov dword [edi - 0xc], 0
mov ecx, dword [esi]
mov word [ecx], 0
jmp 0x40e65c
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e64e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0
jne 0x40e6c7
mov ebp, dword [esp + 0xac]
add ebp, 0x12c
mov edi, 0x12
mov ecx, dword [ebp]
push 5
push ecx
call dword [0x4d53dc]
lea esi, [ebp - 4]
call fcn.0042aec0
push 0x4e355c
lea eax, [ebp + 0x20]
xor ebx, ebx
call fcn.00406770
mov edx, dword [ebp]
push ebx
push edx
mov dword [ebp + 4], 3
call dword [0x4d53bc]
call fcn.0042aec0
add ebp, 0x44
sub edi, 1
jne 0x40e680
jmp 0x40eda5
mov dword [esp + 0x1c], 0
nop
test ecx, ecx
je 0x40e6e1
mov eax, edx
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x1c], eax
jb 0x40e6ee
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
add eax, eax
add eax, eax
mov eax, dword [eax + ecx]
mov ebp, 2
cmp dword [eax - 0xc], ebp
jge 0x40e903
mov esi, dword [esp + 0x1c]
add esi, 1
test ecx, ecx
je 0x40e71d
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40e72a
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + esi*4]
cmp dword [eax - 0xc], ebp
jge 0x40e903
mov ebp, dword [esp + 0x1c]
add ebp, 2
test ecx, ecx
je 0x40e74c
mov eax, edx
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x40e759
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + ebp*4]
cmp dword [eax - 0xc], 2
jl 0x40e8fe
test ecx, ecx
je 0x40e775
mov eax, edx
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x40e782
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov esi, dword [ecx + ebp*4]
mov edi, dword [esp + 0x20]
lea eax, [esi - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x40e7dd
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40e7c8
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x40e7c8
call fcn.00402a60
mov esi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40e7bf
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add esi, 0x10
mov dword [esp + 0x20], esi
jmp 0x40e7d5
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x24]
call fcn.00406770
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
test ecx, ecx
je 0x40e7ee
mov eax, edx
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x1c], eax
jb 0x40e7fb
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
add eax, eax
add eax, eax
test ecx, ecx
lea esi, [eax + ecx]
je 0x40e815
mov eax, edx
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x40e822
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
lea edi, [ecx + ebp*4]
mov ebp, dword [esi]
mov esi, dword [edi]
lea eax, [ebp - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40e879
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40e866
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40e866
call fcn.00402a60
mov ebp, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40e85f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebp, 0x10
mov dword [edi], ebp
jmp 0x40e871
mov ebx, dword [ebp - 0xc]
push ebp
mov eax, edi
call fcn.00406770
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
test ecx, ecx
je 0x40e88a
mov eax, edx
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x1c], eax
jb 0x40e897
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
add eax, eax
add eax, eax
mov esi, dword [eax + ecx]
lea edi, [eax + ecx]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
sub esi, 0x10
cmp eax, esi
je 0x40e8fe
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x40e8e7
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40e8e7
call fcn.00402a60
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [ebp], edx
dec edx
test edx, edx
jg 0x40e8e0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0x10
mov dword [edi], ebx
jmp 0x40e8f6
mov eax, dword [esp + 0x20]
mov ebx, dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00406770
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov ebp, 2
test ecx, ecx
mov edi, dword [esp + 0x1c]
je 0x40e916
mov eax, edx
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40e923
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
lea ebx, [edi*4]
mov eax, dword [ebx + ecx]
cmp dword [eax - 0xc], ebp
jge 0x40eb56
test ecx, ecx
lea esi, [edi + 1]
je 0x40e948
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40e955
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + esi*4]
cmp dword [eax - 0xc], ebp
jge 0x40eb56
test ecx, ecx
lea esi, [edi + 2]
je 0x40e973
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40e980
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + esi*4]
cmp dword [eax - 0xc], ebp
jge 0x40eb56
mov eax, dword [esp + 0x18]
imul eax, eax, 0x2e
lea esi, [eax + 0xa8]
add eax, 0xd5
sub eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x6c], esi
mov esi, eax
shl esi, 4
add esi, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xac]
mov ebp, 0x14b
mov dword [esp + 0x30], ebx
lea edi, [eax + esi*4 + 0x390]
mov edi, edi
test ecx, ecx
je 0x40e9e1
mov eax, edx
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x28], eax
jb 0x40e9ee
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x30]
mov eax, dword [esi + ecx]
cmp dword [eax - 0xc], 0
je 0x40eacf
test ecx, ecx
je 0x40ea0e
sub edx, ecx
sar edx, 2
cmp dword [esp + 0x28], edx
jb 0x40ea17
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
add ecx, esi
push ecx
lea ecx, [esp + 0x3c]
push ecx
lea ebx, [esp + 0x2c]
call fcn.004064f0
add esp, 8
mov byte [esp + 0xa4], 5
mov ecx, dword [eax]
test ecx, ecx
jne 0x40ea3d
xor ebx, ebx
jmp 0x40ea53
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40ea42
sub eax, esi
sar eax, 1
mov ebx, eax
push ecx
lea eax, [edi + 0x20]
call fcn.00406770
mov byte [esp + 0xa4], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ea84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
lea ecx, [esp + 0x78]
push ecx
push edx
call dword [0x4d53a0]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
push eax
call dword [0x4d53c4]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
lea eax, [esp + 0x80]
push eax
call dword [0x4d53f8]
mov ecx, dword [edi]
neg eax
sbb eax, eax
neg eax
push 1
mov dword [edi + 4], eax
push ecx
jmp 0x40eae9
push 0x4e355c
lea eax, [edi + 0x20]
xor ebx, ebx
call fcn.00406770
mov edx, dword [edi]
push ebx
mov dword [edi + 4], 3
push edx
call dword [0x4d53bc]
lea esi, [edi - 4]
call fcn.0042aec0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x6c]
push 0
push ecx
lea eax, [ebp + 0x45]
sub eax, ebp
push eax
mov eax, dword [edi]
push edx
push ebp
push eax
call dword [0x4d540c]
call fcn.0042aec0
mov ecx, dword [edi]
push 5
push ecx
call dword [0x4d53dc]
call fcn.0042aec0
add dword [esp + 0x30], 4
add dword [esp + 0x28], 1
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
add ebp, 0x46
add edi, 0x44
cmp ebp, 0x21d
jl 0x40e9d0
add dword [esp + 0x1c], 3
jmp 0x40ed91
test ecx, ecx
je 0x40eb65
mov eax, edx
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40eb72
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [ebx + ecx]
cmp dword [eax - 0xc], ebp
jge 0x40eba5
test ecx, ecx
lea esi, [edi + 1]
je 0x40eb8c
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40eb99
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + esi*4]
cmp dword [eax - 0xc], ebp
jl 0x40ed91
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0
je 0x40ed91
mov eax, dword [esp + 0x18]
imul eax, eax, 0x2e
lea esi, [eax + 0xa8]
add eax, 0xd5
sub eax, esi
mov dword [esp + 0x34], eax
mov eax, edi
shl eax, 4
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0xac]
xor ebp, ebp
add eax, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ebx
lea edi, [esi + eax*4 + 0x390]
mov edi, edi
test ecx, ecx
je 0x40ec01
mov eax, edx
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x28], eax
jb 0x40ec0e
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x30]
mov eax, dword [ecx + esi]
cmp dword [eax - 0xc], 0
je 0x40ecf2
test ecx, ecx
je 0x40ec2e
sub edx, ecx
sar edx, 2
cmp dword [esp + 0x28], edx
jb 0x40ec37
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
add ecx, esi
push ecx
lea ecx, [esp + 0x40]
push ecx
lea ebx, [esp + 0x2c]
call fcn.004064f0
add esp, 8
mov byte [esp + 0xa4], 6
mov ecx, dword [eax]
test ecx, ecx
jne 0x40ec5d
xor ebx, ebx
jmp 0x40ec73
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40ec62
sub eax, esi
sar eax, 1
mov ebx, eax
push ecx
lea eax, [edi + 0x20]
call fcn.00406770
mov byte [esp + 0xa4], 4
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40eca4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
lea ecx, [esp + 0x88]
push ecx
push edx
call dword [0x4d53a0]
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push eax
call dword [0x4d53c4]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0x90]
push eax
call dword [0x4d53f8]
mov ecx, dword [edi]
neg eax
sbb eax, eax
neg eax
push 1
mov dword [edi + 4], eax
push ecx
jmp 0x40ed0c
push 0x4e355c
lea eax, [edi + 0x20]
xor ebx, ebx
call fcn.00406770
mov edx, dword [edi]
push ebx
mov dword [edi + 4], 3
push edx
call dword [0x4d53bc]
lea esi, [edi - 4]
call fcn.0042aec0
mov eax, ebp
cdq
sub eax, edx
mov ecx, eax
lea ebx, [ebp + 0xd2]
mov eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
push 0
sar ecx, 1
add ecx, 0x14b
add eax, 0x14a
push edx
sub eax, ecx
push eax
mov eax, dword [esp + 0x78]
push eax
push ecx
mov ecx, dword [edi]
push ecx
call dword [0x4d540c]
call fcn.0042aec0
mov edx, dword [edi]
push 5
push edx
call dword [0x4d53dc]
call fcn.0042aec0
add dword [esp + 0x30], 4
add dword [esp + 0x28], 1
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov ebp, ebx
add edi, 0x44
cmp ebp, 0x1a4
jl 0x40ebf0
add dword [esp + 0x1c], 2
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x40e6d0
mov byte [esp + 0xa4], 3
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40edcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa4], 2
mov esi, dword [esp + 0x5c]
xor ebx, ebx
cmp esi, ebx
je 0x40ee22
mov eax, dword [esp + 0x60]
cmp esi, eax
mov edi, eax
je 0x40ee19
lea esp, [esp]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40edf0
mov esi, dword [esp + 0x5c]
push esi
call fcn.004a91d0
add esp, 4
mov byte [esp + 0xa4], 1
mov eax, dword [esp + 0x20]
jmp 0x40fa14
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
mov dword [esp + 0x28], ebp
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov byte [esp + 0xa4], 8
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
push ecx
mov ecx, 0x50c48c
mov dword [esp + 0x44], esp
mov esi, esp
call eax
add eax, 0x10
mov ecx, 0x16
lea edx, [esp + 0x5c]
mov dword [esi], eax
call fcn.004109e0
mov ecx, dword [esp + 0x5c]
xor ebx, ebx
xor edi, edi
xor esi, esi
cmp ecx, ebp
je 0x40eea7
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40eeb0
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x38]
lea eax, [ecx + esi*4]
mov ecx, dword [esp + 0xac]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00410020
mov ecx, dword [esp + 0x5c]
cmp ecx, ebp
je 0x40eedd
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40eee6
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + esi*4]
cmp dword [edx - 0xc], 8
jg 0x40eef4
add esi, 1
mov ebx, esi
add edi, 1
cmp edi, 0x12
jl 0x40ee96
cmp ecx, ebp
je 0x40ef0d
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x40ef16
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + ebx*4]
mov eax, dword [eax - 0xc]
cmp eax, 8
jle 0x40ef95
cmp ecx, ebp
je 0x40ef32
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x40ef3b
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + ebx*4]
cmp dword [edx - 0xc], ebp
mov edi, dword [edx - 0x10]
lea esi, [ecx + ebx*4]
lea eax, [edx - 0x10]
je 0x40ef95
cmp dword [eax + 0xc], ebp
lea ecx, [eax + 0xc]
jge 0x40ef6d
cmp dword [edx - 8], ebp
jge 0x40ef63
push 0x80070057
call fcn.00402940
mov dword [edx - 0xc], ebp
mov ecx, dword [esi]
mov word [ecx], bp
jmp 0x40ef91
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ef83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 0x5c]
xor edi, edi
mov dword [esp + 0x18], edi
jmp 0x40efa0
test ecx, ecx
je 0x40efb1
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40efba
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + edi*4]
lea esi, [edi*4]
mov ebx, 4
cmp dword [edx - 0xc], ebx
mov dword [esp + 0x20], esi
jg 0x40f181
test ecx, ecx
lea ebp, [edi + 1]
je 0x40efea
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x40eff3
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + ebp*4]
cmp dword [eax - 0xc], ebx
jle 0x40f181
test ecx, ecx
je 0x40f010
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x40f019
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + ebp*4]
mov esi, dword [esp + 0x1c]
lea eax, [edx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40f074
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40f063
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40f063
call fcn.00402a60
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40f056
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
jmp 0x40f070
mov ebx, dword [edx - 0xc]
push edx
lea eax, [esp + 0x20]
call fcn.00406770
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x40f085
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f08e
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
test ecx, ecx
mov eax, dword [esp + 0x20]
lea esi, [ecx + eax]
je 0x40f0a6
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x40f0af
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [esi]
mov esi, dword [ecx + ebp*4]
lea ebp, [ecx + ebp*4]
lea eax, [edx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40f108
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40f0f9
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40f0f9
call fcn.00402a60
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40f0ed
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [ebp], edi
mov edi, dword [esp + 0x18]
jmp 0x40f104
mov ebx, dword [edx - 0xc]
push edx
mov eax, ebp
call fcn.00406770
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x40f119
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f122
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x20]
mov esi, dword [ecx + eax]
lea ebp, [ecx + eax]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
sub esi, 0x10
cmp eax, esi
je 0x40f47a
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40f467
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40f467
call fcn.00402a60
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40f172
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [ebp], edi
mov edi, dword [esp + 0x18]
jmp 0x40f476
test ecx, ecx
je 0x40f192
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f19b
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + esi]
cmp dword [eax - 0xc], ebx
jg 0x40f2dd
test ecx, ecx
lea ebp, [edi + 2]
je 0x40f1bb
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x40f1c4
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + ebp*4]
cmp dword [edx - 0xc], ebx
jle 0x40f2dd
test ecx, ecx
je 0x40f1e1
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x40f1ea
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + ebp*4]
mov esi, dword [esp + 0x1c]
lea eax, [edx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40f245
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40f234
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40f234
call fcn.00402a60
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40f227
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
jmp 0x40f241
mov ebx, dword [edx - 0xc]
push edx
lea eax, [esp + 0x20]
call fcn.00406770
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x40f256
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f25f
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
test ecx, ecx
mov eax, dword [esp + 0x20]
lea esi, [ecx + eax]
je 0x40f277
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x40f280
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [esi]
mov esi, dword [ecx + ebp*4]
lea ebp, [ecx + ebp*4]
lea eax, [edx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40f108
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40f0f9
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40f0f9
call fcn.00402a60
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40f0ed
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [ebp], edi
mov edi, dword [esp + 0x18]
jmp 0x40f104
test ecx, ecx
je 0x40f2ee
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f2f7
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + esi]
mov ebx, 2
cmp dword [eax - 0xc], ebx
jg 0x40f47a
test ecx, ecx
lea esi, [edi + 1]
je 0x40f31c
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f325
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + esi*4]
cmp dword [edx - 0xc], ebx
jg 0x40f47a
test ecx, ecx
lea ebp, [edi + 2]
je 0x40f345
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x40f34e
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + ebp*4]
cmp dword [eax - 0xc], ebx
jle 0x40f47a
test ecx, ecx
je 0x40f36b
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x40f374
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + ebp*4]
mov esi, dword [esp + 0x1c]
lea eax, [edx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40f3cf
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40f3be
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40f3be
call fcn.00402a60
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40f3b1
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
jmp 0x40f3cb
mov ebx, dword [edx - 0xc]
push edx
lea eax, [esp + 0x20]
call fcn.00406770
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x40f3e0
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f3e9
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
test ecx, ecx
mov eax, dword [esp + 0x20]
lea esi, [ecx + eax]
je 0x40f401
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x40f40a
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [esi]
mov esi, dword [ecx + ebp*4]
lea ebp, [ecx + ebp*4]
lea eax, [edx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40f108
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40f0f9
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40f0f9
call fcn.00402a60
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40f0ed
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [ebp], edi
mov edi, dword [esp + 0x18]
jmp 0x40f104
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax - 0xc]
push eax
mov eax, ebp
call fcn.00406770
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x40f48b
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f494
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x20]
mov eax, dword [ecx + ebx]
mov ebp, 2
cmp dword [eax - 0xc], ebp
jg 0x40f68c
test ecx, ecx
lea esi, [edi + 1]
je 0x40f4bd
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f4c6
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + esi*4]
cmp dword [edx - 0xc], ebp
jg 0x40f68c
test ecx, ecx
lea esi, [edi + 2]
je 0x40f4e6
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f4ef
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + esi*4]
cmp dword [eax - 0xc], ebp
jg 0x40f68c
mov eax, dword [esp + 0x28]
imul eax, eax, 0x2e
lea edx, [eax + 0x1e]
add eax, 0x4b
sub eax, edx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], edx
mov ebx, edx
mov edx, eax
shl edx, 4
mov dword [esp + 0x30], eax
mov esi, eax
add edx, eax
mov eax, dword [esp + 0xac]
mov ebp, 0x14b
lea edi, [eax + edx*4 + 0x12c]
test ecx, ecx
mov edx, dword [esp + 0x60]
je 0x40f553
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f560
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, dword [ecx + ebx]
cmp dword [eax - 0xc], 0
je 0x40f5fd
test ecx, ecx
je 0x40f57c
sub edx, ecx
sar edx, 2
mov eax, edx
cmp esi, eax
jb 0x40f585
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + ebx]
test ecx, ecx
jne 0x40f590
xor ebx, ebx
jmp 0x40f5a6
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40f595
sub eax, esi
sar eax, 1
mov ebx, eax
push ecx
lea eax, [edi + 0x20]
call fcn.00406770
mov edx, dword [edi]
lea ecx, [esp + 0x88]
push ecx
push edx
call dword [0x4d53a0]
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push eax
call dword [0x4d53c4]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0x90]
push eax
call dword [0x4d53f8]
mov ecx, dword [edi]
neg eax
sbb eax, eax
neg eax
push 1
mov dword [edi + 4], eax
push ecx
jmp 0x40f617
push 0x4e355c
lea eax, [edi + 0x20]
xor ebx, ebx
call fcn.00406770
mov edx, dword [edi]
push ebx
mov dword [edi + 4], 3
push edx
call dword [0x4d53bc]
lea esi, [edi - 4]
call fcn.0042aec0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x6c]
push 0
push ecx
lea eax, [ebp + 0x45]
sub eax, ebp
push eax
mov eax, dword [edi]
push edx
push ebp
push eax
call dword [0x4d540c]
call fcn.0042aec0
mov ecx, dword [edi]
push 5
push ecx
call dword [0x4d53dc]
call fcn.0042aec0
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x5c]
add ebx, 4
add ebp, 0x46
add esi, 1
add edi, 0x44
cmp ebp, 0x21d
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], esi
jl 0x40f540
add dword [esp + 0x18], 3
jmp 0x40f9a6
test ecx, ecx
je 0x40f69d
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f6a6
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + ebx]
cmp dword [edx - 0xc], 4
jle 0x40f7fc
test ecx, ecx
je 0x40f6c4
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f6cd
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + ebx]
cmp dword [eax - 0xc], 0
je 0x40f796
test ecx, ecx
je 0x40f6eb
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f6f4
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0xac]
mov ecx, dword [ecx + ebx]
mov edx, edi
shl edx, 4
add edx, edi
test ecx, ecx
lea esi, [eax + edx*4]
lea eax, [esi + 0x14c]
jne 0x40f716
xor edx, edx
jmp 0x40f72f
mov edx, ecx
lea ebp, [edx + 2]
jmp 0x40f720
mov bx, word [edx]
add edx, 2
test bx, bx
jne 0x40f720
sub edx, ebp
sar edx, 1
push ecx
mov ebx, edx
call fcn.00406770
mov edx, dword [esi + 0x12c]
lea ecx, [esp + 0x78]
add esi, 0x128
push ecx
push edx
call dword [0x4d53a0]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
push eax
call dword [0x4d53c4]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
lea eax, [esp + 0x80]
push eax
call dword [0x4d53f8]
mov ecx, dword [esi + 4]
neg eax
sbb eax, eax
push 1
neg eax
push ecx
mov dword [esi + 8], eax
call dword [0x4d53bc]
call fcn.0042aec0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0xac]
imul eax, eax, 0x2e
lea ecx, [eax + 0x1e]
push 0
add eax, 0x4b
sub eax, ecx
push eax
mov edx, edi
shl edx, 4
push 0xd1
add edx, edi
mov eax, dword [esi + edx*4 + 0x12c]
push ecx
lea esi, [esi + edx*4 + 0x128]
push 0x14b
push eax
call dword [0x4d540c]
call fcn.0042aec0
mov ecx, dword [esi + 4]
push 5
push ecx
call dword [0x4d53dc]
call fcn.0042aec0
mov ecx, dword [esp + 0x5c]
add edi, 1
mov dword [esp + 0x18], edi
jmp 0x40f9aa
test ecx, ecx
je 0x40f80d
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f816
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + ebx]
cmp dword [edx - 0xc], ebp
jg 0x40f847
test ecx, ecx
lea esi, [edi + 1]
je 0x40f832
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f83b
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + esi*4]
cmp dword [eax - 0xc], ebp
jle 0x40f9aa
mov eax, dword [esp + 0x28]
imul eax, eax, 0x2e
lea edx, [eax + 0x1e]
add eax, 0x4b
sub eax, edx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], edx
mov edx, eax
shl edx, 4
xor ebp, ebp
add edx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xac]
lea edi, [eax + edx*4 + 0x12c]
test ecx, ecx
mov edx, dword [esp + 0x60]
je 0x40f89a
mov eax, edx
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x30], eax
jb 0x40f8a7
call fcn.004aa383
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x34]
mov eax, dword [ecx + esi]
cmp dword [eax - 0xc], 0
je 0x40f90b
test ecx, ecx
je 0x40f8c5
sub edx, ecx
sar edx, 2
mov eax, edx
cmp dword [esp + 0x30], eax
jb 0x40f8ce
call fcn.004aa383
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + esi]
test ecx, ecx
jne 0x40f8d9
xor ebx, ebx
jmp 0x40f8f1
mov eax, ecx
lea esi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40f8e0
sub eax, esi
sar eax, 1
mov ebx, eax
push ecx
lea eax, [edi + 0x20]
call fcn.00406770
lea esi, [edi - 4]
mov eax, 1
mov ecx, esi
call fcn.0042a620
jmp 0x40f933
push 0x4e355c
lea eax, [edi + 0x20]
xor ebx, ebx
call fcn.00406770
mov ecx, dword [edi]
push ebx
push ecx
mov dword [edi + 4], 3
call dword [0x4d53bc]
lea esi, [edi - 4]
call fcn.0042aec0
mov eax, ebp
cdq
sub eax, edx
mov ecx, eax
lea ebx, [ebp + 0xd2]
mov eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
sar eax, 1
push 0
sar ecx, 1
add ecx, 0x14b
add eax, 0x14a
push edx
sub eax, ecx
push eax
mov eax, dword [esp + 0x78]
push eax
push ecx
mov ecx, dword [edi]
push ecx
call dword [0x4d540c]
call fcn.0042aec0
mov edx, dword [edi]
push 5
push edx
call dword [0x4d53dc]
call fcn.0042aec0
add dword [esp + 0x34], 4
add dword [esp + 0x30], 1
mov ecx, dword [esp + 0x5c]
mov ebp, ebx
add edi, 0x44
cmp ebp, 0x1a4
jl 0x40f885
add dword [esp + 0x18], 2
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, 6
mov dword [esp + 0x28], eax
jl 0x40efa0
xor ebx, ebx
cmp ecx, ebx
mov byte [esp + 0xa4], 7
je 0x40fa08
mov edi, dword [esp + 0x60]
cmp ecx, edi
mov esi, ecx
je 0x40f9ff
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40f9d6
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004a91d0
add esp, 4
mov byte [esp + 0xa4], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, 0x4e355c
call fcn.004062e0
lea edx, [esp + 0x38]
mov bl, 9
push edx
mov ecx, 0x4e355c
mov byte [esp + 0xa8], bl
call fcn.004062e0
mov edi, dword [esp + 0xac]
push 1
push 0
push edi
lea ecx, [esp + 0x44]
mov byte [esp + 0xb0], 0xa
call fcn.0040ce50
mov byte [esp + 0xa4], bl
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40faa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa4], 1
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40facf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x834]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
lea ecx, [edi + 0x788]
call fcn.0042a620
mov eax, dword [edi + 0x834]
xor edx, edx
cmp edx, eax
sbb eax, eax
neg eax
lea ecx, [edi + 0x7cc]
call fcn.0042a620
call fcn.0040c3f0
mov byte [esp + 0xa4], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa4], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4