Function at 0x41df00
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x94]
push ebp
push esi
mov esi, dword [esp + 0x94]
mov eax, dword [esi + 0x17c]
mov ecx, dword [esi + 0x18c]
push edi
mov edi, dword [ecx + eax*4]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0xac]
mov dword [esp + 0x18], ecx
shr ecx, 0x12
and ecx, 0x1f
mov eax, 1
shl eax, cl
mov dword [esp + 0x28], edx
mov edx, dword [edi + 0xa8]
mov dword [esp + 0x38], ecx
mov ecx, dword [edi + 0x14]
add eax, 2
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x10]
add ebx, edx
lea ebp, [eax + ecx]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0
cmp ebx, ebp
jbe 0x41df80
sub eax, edx
add eax, ecx
mov ebx, eax
mov dword [esp + 0xa0], ebx
jmp 0x41df87
mov ebx, dword [esp + 0xa0]
cmp dword [edi + 0x88], 0
je 0x41dfea
mov eax, 1
cmp dword [esi + 0xa4], eax
je 0x41dfbd
cmp dword [esi + 0x1c], eax
je 0x41dfbd
test byte [esp + 0x18], 4
jne 0x41dfbd
mov ecx, dword [esp + 0x9c]
lea eax, [ebx*8]
push eax
push 0
push ecx
jmp 0x41dfcf
mov eax, dword [esp + 0x9c]
lea edx, [ebx*4]
push edx
push 0
push eax
call fcn.0043b030
add esp, 0xc
add dword [edi + 0xa8], ebx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x84
ret
mov edx, dword [esp + 0x18]
mov ecx, edx
and ecx, 8
je 0x41e005
cmp dword [edi + 0x74], 0
jne 0x41e005
mov eax, dword [esp + 0x3c]
add eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x41e397
test edx, 0x40000004
je 0x41e1b1
mov ebp, dword [esp + 0x9c]
lea ebx, [ebp + ebx*4]
mov dword [esp + 0x38], ebx
test ecx, ecx
je 0x41e068
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x10], ecx
mov esi, ebp
cmp ebp, ebx
jae 0x41e07e
push 0
push 0
mov edx, edi
call fcn.004209f0
mov dword [esi], eax
add esi, 4
cmp eax, 0x80000000
je 0x41e05d
cmp esi, ebx
jb 0x41e040
jmp 0x41e07e
sub esi, ebp
sar esi, 2
mov dword [esp + 0x10], esi
jmp 0x41e07e
mov edx, dword [esp + 0xa0]
push edx
push ebp
push edi
call fcn.004210e0
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], ebp
cmp ebp, ebx
jae 0x41ee56
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx + 0x84]
mov eax, dword [esp + 0x34]
mov ebx, dword [eax]
add ecx, 0x160
test ebp, ebp
je 0x41e158
mov edi, edi
mov edx, dword [ecx]
dec ebp
cmp edx, 8
mov dword [esp + 0x48], ebp
jle 0x41e0e1
test dl, 1
mov edx, dword [ecx + 0x10]
je 0x41e0d1
lea eax, [edx + edx]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
xor edi, edi
jmp 0x41e0ef
mov eax, edx
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
sar eax, 1
add eax, edx
xor edi, edi
jmp 0x41e0ef
mov esi, dword [esp + 0x14]
mov eax, dword [ecx + esi*4 + 0x10]
lea edi, [edx + esi]
and edi, 7
mov esi, dword [ecx + 8]
movsx edx, ax
cmp eax, edx
je 0x41e11e
mov edx, eax
sar edx, 9
mov ebp, eax
and ebp, 0xffff
and edx, 0xffffff80
imul ebp, esi
imul edx, esi
sar ebp, 9
lea edx, [edx + ebp + 1]
mov ebp, dword [esp + 0x48]
sar edx, 1
jmp 0x41e12c
mov edx, esi
imul edx, eax
add edx, 0x200
sar edx, 0xa
add edx, ebx
test eax, eax
je 0x41e147
test ebx, ebx
je 0x41e147
xor eax, ebx
mov ebx, dword [ecx + 4]
sar eax, 0x1f
xor ebx, eax
sub ebx, eax
add ebx, esi
mov dword [ecx + 8], ebx
mov dword [ecx + edi*4 + 0x10], edx
add ecx, 0x60
mov ebx, edx
test ebp, ebp
jne 0x41e0b0
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [esp + 0x3c]
jg 0x41e19a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
inc eax
and eax, 7
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [eax], ebx
lea edx, [ebx + ecx*2]
add eax, 4
add edx, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x38]
jb 0x41e090
jmp 0x41ee56
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x9c]
sar eax, 2
mov dword [esp + 0x10], eax
jmp 0x41ee56
test eax, eax
jne 0x41e397
test dword [esp + 0x18], 0x40000004
jne 0x41e397
mov ebp, dword [esp + 0x9c]
lea eax, [ebp + ebx*8]
test ecx, ecx
je 0x41e223
mov dword [esp + 0x10], ebx
mov esi, ebp
cmp ebp, eax
jae 0x41e232
push 0
push 0
mov edx, edi
call fcn.004209f0
mov dword [esi], eax
cmp eax, 0x80000000
je 0x41e216
push 0
push 1
mov edx, edi
call fcn.004209f0
mov dword [esi + 4], eax
cmp eax, 0x80000000
je 0x41e216
add esi, 8
lea eax, [ebp + ebx*8]
cmp esi, eax
jb 0x41e1e0
jmp 0x41e232
sub esi, ebp
sar esi, 2
shr esi, 1
mov dword [esp + 0x10], esi
jmp 0x41e232
push ebx
push ebp
push edi
call fcn.004210e0
add esp, 0xc
mov dword [esp + 0x10], eax
mov esi, dword [edi + 0x84]
lea eax, [edi + 0x160]
test esi, esi
je 0x41e2e9
mov edi, dword [esp + 0x38]
lea ebx, [ebx]
dec esi
cmp edi, 0x10
jb 0x41e261
mov ecx, ebx
mov edx, ebp
call fcn.0041f090
jmp 0x41e2de
test esi, esi
je 0x41e2d5
mov ecx, dword [eax]
cmp ecx, 0x11
jne 0x41e296
mov edx, dword [eax + 0x60]
cmp edx, ecx
jne 0x41e282
mov ecx, ebx
mov edx, ebp
call fcn.0041fc50
dec esi
add eax, 0x60
jmp 0x41e2de
cmp edx, 0x12
jne 0x41e296
mov ecx, ebx
mov edx, ebp
call fcn.0041fb20
dec esi
add eax, 0x60
jmp 0x41e2de
cmp ecx, 0x12
jne 0x41e2af
cmp dword [eax + 0x60], ecx
jne 0x41e2af
mov ecx, ebx
mov edx, ebp
call fcn.0041fd80
dec esi
add eax, 0x60
jmp 0x41e2de
cmp ecx, 1
jl 0x41e2d5
cmp ecx, 7
jg 0x41e2d5
mov ecx, dword [eax + 0x60]
cmp ecx, 1
jl 0x41e2d5
cmp ecx, 7
jg 0x41e2d5
mov ecx, ebx
mov edx, ebp
call fcn.0041fec0
dec esi
add eax, 0x60
jmp 0x41e2de
mov ecx, ebx
mov edx, ebp
call fcn.0041f6e0
add eax, 0x60
test esi, esi
jne 0x41e250
test byte [esp + 0x18], 0x10
mov eax, ebp
lea esi, [ebp + ebx*8]
je 0x41e322
cmp ebp, esi
jae 0x41e348
mov edx, dword [esp + 0x28]
mov edi, edi
mov ecx, dword [eax]
sar ecx, 1
sub dword [eax + 4], ecx
mov ecx, dword [eax + 4]
add dword [eax], ecx
mov ecx, dword [eax]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + edx*8]
add ecx, dword [eax + 4]
add eax, 8
add edx, ecx
cmp eax, esi
jb 0x41e300
jmp 0x41e344
cmp ebp, esi
jae 0x41e348
mov edx, dword [esp + 0x28]
lea ebx, [ebx]
mov ecx, dword [eax]
lea ecx, [ecx + ecx*2]
add ecx, dword [eax + 4]
add eax, 8
add ecx, edx
lea edx, [ecx + edx*8]
cmp eax, esi
jb 0x41e330
mov dword [esp + 0x28], edx
mov ecx, ebp
cmp ebp, esi
jae 0x41e389
mov edi, dword [esp + 0x3c]
mov eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
jg 0x41e37e
mov eax, dword [ecx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
jg 0x41e37e
add ecx, 0x40
cmp ecx, esi
jb 0x41e352
mov eax, ebx
and eax, 7
mov dword [esp + 0x14], eax
jmp 0x41ee56
sub ecx, ebp
sar ecx, 2
shr ecx, 1
mov dword [esp + 0x10], ecx
mov eax, ebx
and eax, 7
mov dword [esp + 0x14], eax
jmp 0x41ee56
xor edx, edx
cmp ecx, edx
je 0x41e5b5
test dword [esp + 0x18], 0x40000004
je 0x41e5b5
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jbe 0x41ee56
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push ecx
push 0
call fcn.004209f0
mov ebp, eax
cmp ebp, 0x80000000
je 0x41ee56
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + 0x84]
add ecx, 0x160
test ebx, ebx
je 0x41e4a7
lea esp, [esp]
mov edx, dword [ecx]
mov esi, dword [esp + 0x14]
dec ebx
cmp edx, 8
mov dword [esp + 0x48], ebx
jle 0x41e434
test dl, 1
mov edx, dword [ecx + 0x10]
je 0x41e425
lea eax, [edx + edx]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
xor edi, edi
jmp 0x41e43e
lea eax, [edx + edx*2]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
sar eax, 1
xor edi, edi
jmp 0x41e43e
mov eax, dword [ecx + esi*4 + 0x10]
lea edi, [edx + esi]
and edi, 7
mov esi, dword [ecx + 8]
movsx edx, ax
cmp eax, edx
je 0x41e46d
mov edx, eax
sar edx, 9
mov ebx, eax
and ebx, 0xffff
and edx, 0xffffff80
imul ebx, esi
imul edx, esi
sar ebx, 9
lea edx, [edx + ebx + 1]
mov ebx, dword [esp + 0x48]
sar edx, 1
jmp 0x41e47b
mov edx, esi
imul edx, eax
add edx, 0x200
sar edx, 0xa
add edx, ebp
test eax, eax
je 0x41e496
test ebp, ebp
je 0x41e496
xor eax, ebp
mov ebp, dword [ecx + 4]
sar eax, 0x1f
xor ebp, eax
sub ebp, eax
add ebp, esi
mov dword [ecx + 8], ebp
mov dword [ecx + edi*4 + 0x10], edx
add ecx, 0x60
mov ebp, edx
test ebx, ebx
jne 0x41e400
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc eax
and eax, 7
mov dword [esp + 0x14], eax
test dl, 0x40
je 0x41e56a
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x128]
add dword [edi + 0x120], ecx
mov ecx, dword [edi + 0x130]
mov esi, dword [edi + 0x120]
movsx eax, cx
sar esi, 0x10
cmp ecx, eax
mov eax, ecx
je 0x41e507
sar eax, 9
mov ebx, ecx
and ebx, 0xffff
and eax, 0xffffff80
imul ebx, esi
imul eax, esi
sar ebx, 9
lea eax, [eax + ebx + 1]
sar eax, 1
jmp 0x41e512
imul eax, esi
add eax, 0x200
sar eax, 0xa
neg eax
test edx, 0x20000000
je 0x41e556
test esi, esi
jge 0x41e556
test eax, eax
je 0x41e556
cmp eax, ecx
jne 0x41e542
test eax, eax
jge 0x41e541
mov ecx, dword [esp + 0x40]
inc eax
mov edx, eax
sub edx, ecx
sub ecx, eax
mov dword [edi + 0x130], edx
add ebp, ecx
jmp 0x41e56e
dec eax
mov ecx, dword [esp + 0x40]
mov edx, eax
sub edx, ecx
sub ecx, eax
mov dword [edi + 0x130], edx
add ebp, ecx
jmp 0x41e56e
mov ecx, dword [esp + 0x40]
mov edx, ecx
neg edx
sub ecx, eax
mov dword [edi + 0x130], edx
add ebp, ecx
jmp 0x41e56e
add ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
lea ecx, [ebp + eax*2]
add ecx, eax
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
jg 0x41ee56
mov eax, dword [esp + 0x34]
mov dword [eax], ebp
add eax, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0xa0]
jb 0x41e3c6
jmp 0x41ee56
cmp eax, edx
je 0x41ee52
test dword [esp + 0x18], 0x40000004
jne 0x41ee52
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jbe 0x41ee56
mov edx, dword [esp + 0x1c]
xor eax, eax
lea ecx, [esp + 0x40]
push ecx
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
call fcn.004209f0
mov esi, eax
mov dword [esp + 0x2c], esi
cmp esi, 0x80000000
je 0x41ee56
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x20]
push 1
call fcn.004209f0
mov dword [esp + 0x30], eax
cmp eax, 0x80000000
je 0x41ee56
mov ebx, dword [esp + 0x18]
mov ecx, ebx
and ecx, 0x20
mov dword [esp + 0x4c], ecx
je 0x41e8cf
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add esi, ecx
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx + 0x84]
lea edi, [edx + eax]
add ecx, 0x160
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
test ebp, ebp
je 0x41e8ba
lea esp, [esp]
mov ebx, dword [ecx]
dec ebp
test ebx, ebx
jle 0x41e74f
cmp ebx, 8
jle 0x41e6af
test bl, 1
je 0x41e697
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx + 0x30]
add edx, edx
sub edx, dword [ecx + 0x14]
add esi, esi
sub esi, dword [ecx + 0x34]
jmp 0x41e6bb
mov eax, dword [ecx + 0x10]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0x30]
sub edx, dword [ecx + 0x14]
lea esi, [eax + eax*2]
sub esi, dword [ecx + 0x34]
sar edx, 1
sar esi, 1
jmp 0x41e6bb
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + eax*4 + 0x10]
mov esi, dword [ecx + eax*4 + 0x30]
movsx eax, dx
cmp edx, eax
je 0x41e6e4
mov eax, dword [ecx + 8]
mov edi, edx
sar edi, 9
and edx, 0xffff
and edi, 0xffffff80
imul edx, eax
imul edi, eax
sar edx, 9
lea edi, [edi + edx + 1]
sar edi, 1
jmp 0x41e6f3
mov edi, dword [ecx + 8]
imul edi, edx
add edi, 0x200
sar edi, 0xa
add dword [esp + 0x24], edi
movsx edx, si
cmp esi, edx
je 0x41e72f
mov eax, dword [ecx + 0xc]
mov edx, esi
sar edx, 9
and esi, 0xffff
and edx, 0xffffff80
imul esi, eax
imul edx, eax
sar esi, 9
lea edx, [edx + esi + 1]
mov esi, dword [esp + 0x24]
sar edx, 1
add dword [esp + 0x20], edx
mov edi, dword [esp + 0x20]
jmp 0x41e8ab
mov edx, dword [ecx + 0xc]
imul edx, esi
mov esi, dword [esp + 0x24]
add edx, 0x200
sar edx, 0xa
add dword [esp + 0x20], edx
mov edi, dword [esp + 0x20]
jmp 0x41e8ab
cmp ebx, 0xffffffff
jne 0x41e7e9
mov eax, dword [ecx + 0x10]
movsx edx, ax
cmp eax, edx
je 0x41e786
mov edx, eax
mov eax, dword [ecx + 8]
mov ebx, edx
and edx, 0xffff
sar ebx, 9
imul edx, eax
and ebx, 0xffffff80
imul ebx, eax
sar edx, 9
lea edx, [ebx + edx + 1]
sar edx, 1
jmp 0x41e795
mov edx, dword [ecx + 8]
imul edx, eax
add edx, 0x200
sar edx, 0xa
add esi, edx
movsx eax, si
mov dword [esp + 0x24], esi
cmp esi, eax
je 0x41e7cf
mov eax, dword [ecx + 0xc]
mov edx, esi
sar edx, 9
mov ebx, esi
and ebx, 0xffff
and edx, 0xffffff80
imul ebx, eax
imul edx, eax
sar ebx, 9
lea edx, [edx + ebx + 1]
sar edx, 1
add edi, edx
mov dword [esp + 0x20], edi
jmp 0x41e8ab
mov edx, dword [ecx + 0xc]
imul edx, esi
add edx, 0x200
sar edx, 0xa
add edi, edx
mov dword [esp + 0x20], edi
jmp 0x41e8ab
mov eax, dword [ecx + 0x30]
movsx edx, ax
cmp eax, edx
je 0x41e81b
mov edx, eax
mov eax, dword [ecx + 0xc]
mov edi, edx
sar edi, 9
and edx, 0xffff
and edi, 0xffffff80
imul edx, eax
imul edi, eax
sar edx, 9
lea edx, [edi + edx + 1]
mov edi, dword [esp + 0x20]
sar edx, 1
jmp 0x41e82a
mov edx, dword [ecx + 0xc]
imul edx, eax
add edx, 0x200
sar edx, 0xa
add edi, edx
mov dword [esp + 0x20], edi
cmp ebx, 0xfffffffd
jne 0x41e86b
mov eax, dword [ecx + 0x10]
movsx edx, ax
cmp eax, edx
je 0x41e863
mov edx, eax
mov eax, dword [ecx + 8]
mov ebx, edx
and edx, 0xffff
sar ebx, 9
imul edx, eax
and ebx, 0xffffff80
imul ebx, eax
sar edx, 9
lea edx, [ebx + edx + 1]
sar edx, 1
jmp 0x41e8a5
mov edx, dword [ecx + 8]
imul edx, eax
jmp 0x41e89c
movsx eax, di
cmp edi, eax
je 0x41e896
mov eax, dword [ecx + 8]
mov edx, edi
sar edx, 9
mov ebx, edi
and ebx, 0xffff
and edx, 0xffffff80
imul ebx, eax
imul edx, eax
sar ebx, 9
lea edx, [edx + ebx + 1]
sar edx, 1
jmp 0x41e8a5
mov edx, dword [ecx + 8]
imul edx, edi
add edx, 0x200
sar edx, 0xa
add esi, edx
mov dword [esp + 0x24], esi
add ecx, 0x60
test ebp, ebp
jne 0x41e670
mov ebx, dword [esp + 0x18]
test bl, 0x10
je 0x41e8cf
mov eax, esi
sar eax, 1
sub edi, eax
add esi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx + 0x84]
add ecx, 0x160
test ebp, ebp
je 0x41ec3c
mov ebx, dword [ecx]
dec ebp
mov dword [esp + 0x48], ebp
test ebx, ebx
jle 0x41ea34
cmp ebx, 8
jle 0x41e942
mov edi, dword [ecx + 0x10]
mov eax, dword [ecx + 0x30]
test bl, 1
je 0x41e922
lea edx, [edi + edi]
sub edx, dword [ecx + 0x14]
lea esi, [eax + eax]
sub esi, dword [ecx + 0x34]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x34], eax
mov dword [esp + 0x38], 0
jmp 0x41e957
lea edx, [edi + edi*2]
sub edx, dword [ecx + 0x14]
lea esi, [eax + eax*2]
sub esi, dword [ecx + 0x34]
sar edx, 1
sar esi, 1
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x34], eax
mov dword [esp + 0x38], 0
jmp 0x41e957
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + eax*4 + 0x10]
mov esi, dword [ecx + eax*4 + 0x30]
add eax, ebx
and eax, 7
mov dword [esp + 0x38], eax
mov ebx, dword [ecx + 8]
movsx eax, dx
cmp edx, eax
je 0x41e982
mov eax, edx
sar eax, 9
mov edi, edx
and edi, 0xffff
imul edi, ebx
and eax, 0xffffff80
imul eax, ebx
sar edi, 9
lea edi, [eax + edi + 1]
sar edi, 1
jmp 0x41e990
mov edi, ebx
imul edi, edx
add edi, 0x200
sar edi, 0xa
mov eax, dword [esp + 0x2c]
add edi, eax
movsx eax, si
cmp esi, eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x50], edi
je 0x41e9c5
mov edi, esi
sar edi, 9
mov ebp, esi
and ebp, 0xffff
and edi, 0xffffff80
imul ebp, eax
imul edi, eax
sar ebp, 9
lea edi, [edi + ebp + 1]
sar edi, 1
jmp 0x41e9d3
mov edi, eax
imul edi, esi
add edi, 0x200
sar edi, 0xa
mov ebp, dword [esp + 0x30]
add edi, ebp
test edx, edx
je 0x41e9f6
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x41e9f6
xor edx, ebp
mov ebp, dword [ecx + 4]
sar edx, 0x1f
xor ebp, edx
sub ebp, edx
add ebp, ebx
mov dword [ecx + 8], ebp
test esi, esi
je 0x41ea13
mov edx, dword [esp + 0x30]
test edx, edx
je 0x41ea13
xor esi, edx
mov edx, dword [ecx + 4]
sar esi, 0x1f
xor edx, esi
sub edx, esi
add edx, eax
mov dword [ecx + 0xc], edx
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov dword [ecx + edx*4 + 0x10], eax
mov dword [esp + 0x30], edi
mov dword [ecx + edx*4 + 0x30], edi
jmp 0x41ec2d
cmp ebx, 0xffffffff
jne 0x41eb31
mov edi, dword [ecx + 0x10]
mov edx, dword [ecx + 8]
movsx eax, di
cmp edi, eax
je 0x41ea6b
mov eax, edi
sar eax, 9
mov esi, edi
and esi, 0xffff
imul esi, edx
and eax, 0xffffff80
imul eax, edx
sar esi, 9
lea esi, [eax + esi + 1]
sar esi, 1
jmp 0x41ea79
mov esi, edx
imul esi, edi
add esi, 0x200
sar esi, 0xa
mov eax, dword [esp + 0x2c]
add esi, eax
test edi, edi
je 0x41eaaf
test eax, eax
je 0x41eaaf
xor edi, eax
sar edi, 0x1f
xor edx, edi
add edx, dword [ecx + 4]
sub edx, edi
cmp edx, 0x400
mov dword [ecx + 8], edx
jle 0x41eaa5
mov dword [ecx + 8], 0x400
mov edx, dword [ecx + 8]
xor edx, edi
sub edx, edi
mov dword [ecx + 8], edx
movsx eax, si
mov dword [esp + 0x2c], esi
cmp esi, eax
je 0x41eade
mov eax, dword [ecx + 0xc]
mov edx, esi
sar edx, 9
mov edi, esi
and edi, 0xffff
and edx, 0xffffff80
imul edi, eax
imul edx, eax
sar edi, 9
lea edx, [edx + edi + 1]
sar edx, 1
jmp 0x41eaed
mov edx, dword [ecx + 0xc]
imul edx, esi
add edx, 0x200
sar edx, 0xa
mov eax, dword [esp + 0x30]
add edx, eax
test esi, esi
je 0x41eb25
test eax, eax
je 0x41eb25
xor esi, eax
mov eax, dword [ecx + 0xc]
sar esi, 0x1f
xor eax, esi
add eax, dword [ecx + 4]
sub eax, esi
cmp eax, 0x400
mov dword [ecx + 0xc], eax
jle 0x41eb1b
mov dword [ecx + 0xc], 0x400
mov eax, dword [ecx + 0xc]
xor eax, esi
sub eax, esi
mov dword [ecx + 0xc], eax
mov dword [esp + 0x30], edx
mov dword [ecx + 0x10], edx
jmp 0x41ec2d
mov edx, dword [ecx + 0x30]
movsx eax, dx
cmp edx, eax
je 0x41eb5f
mov eax, dword [ecx + 0xc]
mov esi, edx
sar esi, 9
mov edi, edx
and edi, 0xffff
and esi, 0xffffff80
imul edi, eax
imul esi, eax
sar edi, 9
lea esi, [esi + edi + 1]
sar esi, 1
jmp 0x41eb6e
mov esi, dword [ecx + 0xc]
imul esi, edx
add esi, 0x200
sar esi, 0xa
mov eax, dword [esp + 0x30]
add esi, eax
test edx, edx
je 0x41eba6
test eax, eax
je 0x41eba6
xor edx, eax
mov eax, dword [ecx + 0xc]
sar edx, 0x1f
xor eax, edx
add eax, dword [ecx + 4]
sub eax, edx
cmp eax, 0x400
mov dword [ecx + 0xc], eax
jle 0x41eb9c
mov dword [ecx + 0xc], 0x400
mov eax, dword [ecx + 0xc]
xor eax, edx
sub eax, edx
mov dword [ecx + 0xc], eax
mov eax, esi
mov dword [esp + 0x30], eax
cmp ebx, 0xfffffffd
jne 0x41ebb7
mov esi, dword [ecx + 0x10]
mov dword [ecx + 0x10], eax
movsx edx, si
cmp esi, edx
mov edx, dword [ecx + 8]
je 0x41ebe2
mov eax, esi
sar eax, 9
mov edi, esi
and edi, 0xffff
imul edi, edx
and eax, 0xffffff80
imul eax, edx
sar edi, 9
lea edi, [eax + edi + 1]
sar edi, 1
jmp 0x41ebf0
mov edi, edx
imul edi, esi
add edi, 0x200
sar edi, 0xa
mov eax, dword [esp + 0x2c]
add edi, eax
test esi, esi
je 0x41ec26
test eax, eax
je 0x41ec26
xor esi, eax
sar esi, 0x1f
xor edx, esi
add edx, dword [ecx + 4]
sub edx, esi
cmp edx, 0x400
mov dword [ecx + 8], edx
jle 0x41ec1c
mov dword [ecx + 8], 0x400
mov edx, dword [ecx + 8]
xor edx, esi
sub edx, esi
mov dword [ecx + 8], edx
mov dword [esp + 0x2c], edi
mov dword [ecx + 0x30], edi
add ecx, 0x60
test ebp, ebp
jne 0x41e8e7
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc eax
and eax, 7
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x14], eax
jne 0x41ec83
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
lea edi, [edx + ecx]
mov ecx, dword [esp + 0x30]
add ecx, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ecx
test bl, 0x10
je 0x41eca8
mov edx, edi
sar edx, 1
sub ecx, edx
add edi, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
jmp 0x41ec8b
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
test bl, 0x10
je 0x41eca8
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov esi, edx
sar esi, 1
sub eax, esi
add edx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
test bl, 0x40
je 0x41edfb
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0x128]
add dword [ebp + 0x120], eax
mov eax, dword [ebp + 0x120]
mov ecx, dword [ebp + 0x130]
mov edx, dword [esp + 0x24]
sar eax, 0x10
mov esi, eax
mov edi, edx
sub edi, dword [esp + 0x2c]
movsx eax, cx
mov dword [esp + 0x40], edi
cmp ecx, eax
je 0x41ed0c
mov eax, ecx
sar eax, 9
mov ebx, ecx
and ebx, 0xffff
and eax, 0xffffff80
imul ebx, esi
imul eax, esi
sar ebx, 9
lea eax, [eax + ebx + 1]
mov ebx, dword [esp + 0x18]
sar eax, 1
jmp 0x41ed19
mov eax, esi
imul eax, ecx
add eax, 0x200
sar eax, 0xa
neg eax
and ebx, 0x20000000
mov dword [esp + 0x4c], ebx
je 0x41ed51
test esi, esi
jge 0x41ed51
test eax, eax
je 0x41ed51
cmp eax, ecx
jne 0x41ed45
test eax, eax
jge 0x41ed44
inc eax
mov ecx, eax
sub ecx, edi
mov dword [ebp + 0x130], ecx
jmp 0x41ed59
dec eax
mov ecx, eax
sub ecx, edi
mov dword [ebp + 0x130], ecx
jmp 0x41ed59
neg edi
mov dword [ebp + 0x130], edi
mov ecx, dword [ebp + 0x134]
sub edx, eax
mov eax, dword [ebp + 0x12c]
add dword [ebp + 0x124], eax
mov eax, dword [ebp + 0x124]
sar eax, 0x10
mov edi, edx
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x30]
mov esi, eax
movsx eax, cx
cmp ecx, eax
mov dword [esp + 0x44], edx
mov eax, ecx
je 0x41edb2
sar eax, 9
mov ebx, ecx
and ebx, 0xffff
and eax, 0xffffff80
imul ebx, esi
imul eax, esi
sar ebx, 9
lea eax, [eax + ebx + 1]
mov ebx, dword [esp + 0x4c]
sar eax, 1
jmp 0x41edbd
imul eax, esi
add eax, 0x200
sar eax, 0xa
neg eax
test ebx, ebx
je 0x41eded
test esi, esi
jge 0x41eded
test eax, eax
je 0x41eded
cmp eax, ecx
jne 0x41ede1
test eax, eax
jge 0x41ede0
inc eax
mov ecx, eax
sub ecx, edx
mov dword [ebp + 0x134], ecx
jmp 0x41edf5
dec eax
mov ecx, eax
sub ecx, edx
mov dword [ebp + 0x134], ecx
jmp 0x41edf5
neg edx
mov dword [ebp + 0x134], edx
mov ecx, dword [esp + 0x20]
sub ecx, eax
mov esi, dword [esp + 0x3c]
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
jg 0x41ee56
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
jg 0x41ee56
mov eax, dword [esp + 0x28]
lea edx, [edi + ecx]
lea edx, [edx + edi*2]
lea edx, [edx + eax*8]
add eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [eax], edi
add eax, 4
mov dword [eax], ecx
add eax, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0xa0]
jb 0x41e5e2
jmp 0x41ee56
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0xa0]
cmp dword [esp + 0x10], esi
je 0x41eee8
test byte [esp + 0x18], 4
mov ecx, dword [esp + 0x9c]
mov eax, 0
sete al
lea eax, [eax*4 + 4]
imul eax, esi
push eax
push 0
push ecx
call fcn.0043b030
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp dword [ecx + 0xf8], 0
mov dword [ecx + 0x88], 1
mov dword [esp + 0x10], esi
je 0x41eee8
cmp dword [ecx + 0x104], 0x10
jae 0x41eebc
add dword [ecx + 0xf8], 2
xor eax, eax
mov dword [ecx + 0xf0], eax
mov dword [ecx + 0xf4], eax
mov dword [ecx + 0xf8], eax
mov dword [ecx + 0xfc], eax
mov dword [ecx + 0x100], eax
mov dword [ecx + 0x104], eax
mov dword [ecx + 0x108], eax
cmp dword [esp + 0x14], 0
je 0x41efe6
mov ebp, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x84]
add ebp, 0x160
test ebx, ebx
je 0x41efe6
lea eax, [ebp + 0x30]
mov edi, edi
mov ecx, dword [ebp]
dec ebx
test ecx, ecx
jle 0x41efd8
cmp ecx, 8
jg 0x41efd8
lea edx, [eax - 0x20]
mov esi, edx
mov ecx, 8
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, eax
lea edi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + ecx*4 + 0x54]
mov dword [edx], esi
mov edx, dword [esp + ecx*4 + 0x74]
inc ecx
and ecx, 7
mov dword [eax], edx
mov edx, dword [esp + ecx*4 + 0x54]
mov dword [eax - 0x1c], edx
mov edx, dword [esp + ecx*4 + 0x74]
inc ecx
and ecx, 7
mov dword [eax + 4], edx
mov edx, dword [esp + ecx*4 + 0x54]
mov dword [eax - 0x18], edx
mov edx, dword [esp + ecx*4 + 0x74]
inc ecx
and ecx, 7
mov dword [eax + 8], edx
mov edx, dword [esp + ecx*4 + 0x54]
mov dword [eax - 0x14], edx
mov edx, dword [esp + ecx*4 + 0x74]
inc ecx
and ecx, 7
mov dword [eax + 0xc], edx
mov edx, dword [esp + ecx*4 + 0x54]
mov dword [eax - 0x10], edx
mov edx, dword [esp + ecx*4 + 0x74]
inc ecx
and ecx, 7
mov dword [eax + 0x10], edx
mov edx, dword [esp + ecx*4 + 0x54]
mov dword [eax - 0xc], edx
mov edx, dword [esp + ecx*4 + 0x74]
inc ecx
and ecx, 7
mov dword [eax + 0x14], edx
mov edx, dword [esp + ecx*4 + 0x54]
mov dword [eax - 8], edx
mov edx, dword [esp + ecx*4 + 0x74]
inc ecx
and ecx, 7
mov dword [eax + 0x18], edx
mov edx, dword [esp + ecx*4 + 0x54]
mov dword [eax - 4], edx
mov edx, dword [esp + ecx*4 + 0x74]
inc ecx
and ecx, 7
mov dword [eax + 0x1c], edx
mov dword [esp + 0x14], ecx
add ebp, 0x60
add eax, 0x60
test ebx, ebx
jne 0x41ef10
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x9c]
mov edi, dword [esp + 0x98]
push esi
push ebp
mov eax, edi
call fcn.00420000
mov eax, dword [esp + 0x20]
add esp, 8
test al, al
jns 0x41f042
test byte [edi + 0x9c], 0x10
je 0x41f042
test eax, 0x40000004
mov eax, esi
jne 0x41f021
lea eax, [esi + esi]
mov ecx, dword [esp + 0x1c]
movzx edx, byte [ecx + 0x11f]
mov ebx, dword [edi + 0xa0]
sub ebx, edx
add ebx, 0x7f
mov ecx, ebp
call fcn.00421f30
mov eax, dword [esp + 0x18]
test eax, 0x40000000
je 0x41f06e
lea eax, [ebp + esi*8]
lea ecx, [ebp + esi*4]
mov edx, esi
test esi, esi
je 0x41f06e
mov edi, dword [ecx - 4]
sub ecx, 4
sub eax, 4
mov dword [eax], edi
mov edi, dword [ecx]
dec edx
sub eax, 4
mov dword [eax], edi
test edx, edx
jne 0x41f057
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
add dword [eax + 0xa8], esi
pop edi
mov dword [eax + 0xac], ecx
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret