Function at 0x421680
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 + 0x180]
mov ecx, dword [esi + 0x190]
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 0x421700
sub eax, edx
add eax, ecx
mov ebx, eax
mov dword [esp + 0xa0], ebx
jmp 0x421707
mov ebx, dword [esp + 0xa0]
cmp dword [edi + 0x88], 0
je 0x42176a
mov eax, 1
cmp dword [esi + 0xa4], eax
je 0x42173d
cmp dword [esi + 0x1c], eax
je 0x42173d
test byte [esp + 0x18], 4
jne 0x42173d
mov ecx, dword [esp + 0x9c]
lea eax, [ebx*8]
push eax
push 0
push ecx
jmp 0x42174f
mov eax, dword [esp + 0x9c]
lea edx, [ebx*4]
push edx
push 0
push eax
call fcn.004ba280
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 0x421785
cmp dword [edi + 0x74], 0
jne 0x421785
mov eax, dword [esp + 0x3c]
add eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x421b17
test edx, 0x40000004
je 0x421931
mov ebp, dword [esp + 0x9c]
lea ebx, [ebp + ebx*4]
mov dword [esp + 0x38], ebx
test ecx, ecx
je 0x4217e8
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x10], ecx
mov esi, ebp
cmp ebp, ebx
jae 0x4217fe
push 0
push 0
mov edx, edi
call fcn.00424170
mov dword [esi], eax
add esi, 4
cmp eax, 0x80000000
je 0x4217dd
cmp esi, ebx
jb 0x4217c0
jmp 0x4217fe
sub esi, ebp
sar esi, 2
mov dword [esp + 0x10], esi
jmp 0x4217fe
mov edx, dword [esp + 0xa0]
push edx
push ebp
push edi
call fcn.00424860
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], ebp
cmp ebp, ebx
jae 0x4225d6
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 0x4218d8
mov edi, edi
mov edx, dword [ecx]
dec ebp
cmp edx, 8
mov dword [esp + 0x48], ebp
jle 0x421861
test dl, 1
mov edx, dword [ecx + 0x10]
je 0x421851
lea eax, [edx + edx]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
xor edi, edi
jmp 0x42186f
mov eax, edx
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
sar eax, 1
add eax, edx
xor edi, edi
jmp 0x42186f
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 0x42189e
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 0x4218ac
mov edx, esi
imul edx, eax
add edx, 0x200
sar edx, 0xa
add edx, ebx
test eax, eax
je 0x4218c7
test ebx, ebx
je 0x4218c7
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 0x421830
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [esp + 0x3c]
jg 0x42191a
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 0x421810
jmp 0x4225d6
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x9c]
sar eax, 2
mov dword [esp + 0x10], eax
jmp 0x4225d6
test eax, eax
jne 0x421b17
test dword [esp + 0x18], 0x40000004
jne 0x421b17
mov ebp, dword [esp + 0x9c]
lea eax, [ebp + ebx*8]
test ecx, ecx
je 0x4219a3
mov dword [esp + 0x10], ebx
mov esi, ebp
cmp ebp, eax
jae 0x4219b2
push 0
push 0
mov edx, edi
call fcn.00424170
mov dword [esi], eax
cmp eax, 0x80000000
je 0x421996
push 0
push 1
mov edx, edi
call fcn.00424170
mov dword [esi + 4], eax
cmp eax, 0x80000000
je 0x421996
add esi, 8
lea eax, [ebp + ebx*8]
cmp esi, eax
jb 0x421960
jmp 0x4219b2
sub esi, ebp
sar esi, 2
shr esi, 1
mov dword [esp + 0x10], esi
jmp 0x4219b2
push ebx
push ebp
push edi
call fcn.00424860
add esp, 0xc
mov dword [esp + 0x10], eax
mov esi, dword [edi + 0x84]
lea eax, [edi + 0x160]
test esi, esi
je 0x421a69
mov edi, dword [esp + 0x38]
lea ebx, [ebx]
dec esi
cmp edi, 0x10
jb 0x4219e1
mov ecx, ebx
mov edx, ebp
call fcn.00422810
jmp 0x421a5e
test esi, esi
je 0x421a55
mov ecx, dword [eax]
cmp ecx, 0x11
jne 0x421a16
mov edx, dword [eax + 0x60]
cmp edx, ecx
jne 0x421a02
mov ecx, ebx
mov edx, ebp
call fcn.004233d0
dec esi
add eax, 0x60
jmp 0x421a5e
cmp edx, 0x12
jne 0x421a16
mov ecx, ebx
mov edx, ebp
call fcn.004232a0
dec esi
add eax, 0x60
jmp 0x421a5e
cmp ecx, 0x12
jne 0x421a2f
cmp dword [eax + 0x60], ecx
jne 0x421a2f
mov ecx, ebx
mov edx, ebp
call fcn.00423500
dec esi
add eax, 0x60
jmp 0x421a5e
cmp ecx, 1
jl 0x421a55
cmp ecx, 7
jg 0x421a55
mov ecx, dword [eax + 0x60]
cmp ecx, 1
jl 0x421a55
cmp ecx, 7
jg 0x421a55
mov ecx, ebx
mov edx, ebp
call fcn.00423640
dec esi
add eax, 0x60
jmp 0x421a5e
mov ecx, ebx
mov edx, ebp
call fcn.00422e60
add eax, 0x60
test esi, esi
jne 0x4219d0
test byte [esp + 0x18], 0x10
mov eax, ebp
lea esi, [ebp + ebx*8]
je 0x421aa2
cmp ebp, esi
jae 0x421ac8
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 0x421a80
jmp 0x421ac4
cmp ebp, esi
jae 0x421ac8
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 0x421ab0
mov dword [esp + 0x28], edx
mov ecx, ebp
cmp ebp, esi
jae 0x421b09
mov edi, dword [esp + 0x3c]
mov eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
jg 0x421afe
mov eax, dword [ecx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
jg 0x421afe
add ecx, 0x40
cmp ecx, esi
jb 0x421ad2
mov eax, ebx
and eax, 7
mov dword [esp + 0x14], eax
jmp 0x4225d6
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 0x4225d6
xor edx, edx
cmp ecx, edx
je 0x421d35
test dword [esp + 0x18], 0x40000004
je 0x421d35
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jbe 0x4225d6
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push ecx
push 0
call fcn.00424170
mov ebp, eax
cmp ebp, 0x80000000
je 0x4225d6
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + 0x84]
add ecx, 0x160
test ebx, ebx
je 0x421c27
lea esp, [esp]
mov edx, dword [ecx]
mov esi, dword [esp + 0x14]
dec ebx
cmp edx, 8
mov dword [esp + 0x48], ebx
jle 0x421bb4
test dl, 1
mov edx, dword [ecx + 0x10]
je 0x421ba5
lea eax, [edx + edx]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
xor edi, edi
jmp 0x421bbe
lea eax, [edx + edx*2]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
sar eax, 1
xor edi, edi
jmp 0x421bbe
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 0x421bed
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 0x421bfb
mov edx, esi
imul edx, eax
add edx, 0x200
sar edx, 0xa
add edx, ebp
test eax, eax
je 0x421c16
test ebp, ebp
je 0x421c16
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 0x421b80
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc eax
and eax, 7
mov dword [esp + 0x14], eax
test dl, 0x40
je 0x421cea
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 0x421c87
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 0x421c92
imul eax, esi
add eax, 0x200
sar eax, 0xa
neg eax
test edx, 0x20000000
je 0x421cd6
test esi, esi
jge 0x421cd6
test eax, eax
je 0x421cd6
cmp eax, ecx
jne 0x421cc2
test eax, eax
jge 0x421cc1
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 0x421cee
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 0x421cee
mov ecx, dword [esp + 0x40]
mov edx, ecx
neg edx
sub ecx, eax
mov dword [edi + 0x130], edx
add ebp, ecx
jmp 0x421cee
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 0x4225d6
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 0x421b46
jmp 0x4225d6
cmp eax, edx
je 0x4225d2
test dword [esp + 0x18], 0x40000004
jne 0x4225d2
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jbe 0x4225d6
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.00424170
mov esi, eax
mov dword [esp + 0x2c], esi
cmp esi, 0x80000000
je 0x4225d6
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x20]
push 1
call fcn.00424170
mov dword [esp + 0x30], eax
cmp eax, 0x80000000
je 0x4225d6
mov ebx, dword [esp + 0x18]
mov ecx, ebx
and ecx, 0x20
mov dword [esp + 0x4c], ecx
je 0x42204f
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 0x42203a
lea esp, [esp]
mov ebx, dword [ecx]
dec ebp
test ebx, ebx
jle 0x421ecf
cmp ebx, 8
jle 0x421e2f
test bl, 1
je 0x421e17
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 0x421e3b
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 0x421e3b
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 0x421e64
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 0x421e73
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 0x421eaf
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 0x42202b
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 0x42202b
cmp ebx, 0xffffffff
jne 0x421f69
mov eax, dword [ecx + 0x10]
movsx edx, ax
cmp eax, edx
je 0x421f06
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 0x421f15
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 0x421f4f
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 0x42202b
mov edx, dword [ecx + 0xc]
imul edx, esi
add edx, 0x200
sar edx, 0xa
add edi, edx
mov dword [esp + 0x20], edi
jmp 0x42202b
mov eax, dword [ecx + 0x30]
movsx edx, ax
cmp eax, edx
je 0x421f9b
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 0x421faa
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 0x421feb
mov eax, dword [ecx + 0x10]
movsx edx, ax
cmp eax, edx
je 0x421fe3
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 0x422025
mov edx, dword [ecx + 8]
imul edx, eax
jmp 0x42201c
movsx eax, di
cmp edi, eax
je 0x422016
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 0x422025
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 0x421df0
mov ebx, dword [esp + 0x18]
test bl, 0x10
je 0x42204f
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 0x4223bc
mov ebx, dword [ecx]
dec ebp
mov dword [esp + 0x48], ebp
test ebx, ebx
jle 0x4221b4
cmp ebx, 8
jle 0x4220c2
mov edi, dword [ecx + 0x10]
mov eax, dword [ecx + 0x30]
test bl, 1
je 0x4220a2
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 0x4220d7
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 0x4220d7
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 0x422102
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 0x422110
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 0x422145
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 0x422153
mov edi, eax
imul edi, esi
add edi, 0x200
sar edi, 0xa
mov ebp, dword [esp + 0x30]
add edi, ebp
test edx, edx
je 0x422176
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x422176
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 0x422193
mov edx, dword [esp + 0x30]
test edx, edx
je 0x422193
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 0x4223ad
cmp ebx, 0xffffffff
jne 0x4222b1
mov edi, dword [ecx + 0x10]
mov edx, dword [ecx + 8]
movsx eax, di
cmp edi, eax
je 0x4221eb
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 0x4221f9
mov esi, edx
imul esi, edi
add esi, 0x200
sar esi, 0xa
mov eax, dword [esp + 0x2c]
add esi, eax
test edi, edi
je 0x42222f
test eax, eax
je 0x42222f
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 0x422225
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 0x42225e
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 0x42226d
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 0x4222a5
test eax, eax
je 0x4222a5
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 0x42229b
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 0x4223ad
mov edx, dword [ecx + 0x30]
movsx eax, dx
cmp edx, eax
je 0x4222df
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 0x4222ee
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 0x422326
test eax, eax
je 0x422326
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 0x42231c
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 0x422337
mov esi, dword [ecx + 0x10]
mov dword [ecx + 0x10], eax
movsx edx, si
cmp esi, edx
mov edx, dword [ecx + 8]
je 0x422362
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 0x422370
mov edi, edx
imul edi, esi
add edi, 0x200
sar edi, 0xa
mov eax, dword [esp + 0x2c]
add edi, eax
test esi, esi
je 0x4223a6
test eax, eax
je 0x4223a6
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 0x42239c
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 0x422067
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 0x422403
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 0x422428
mov edx, edi
sar edx, 1
sub ecx, edx
add edi, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
jmp 0x42240b
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
test bl, 0x10
je 0x422428
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 0x42257b
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 0x42248c
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 0x422499
mov eax, esi
imul eax, ecx
add eax, 0x200
sar eax, 0xa
neg eax
and ebx, 0x20000000
mov dword [esp + 0x4c], ebx
je 0x4224d1
test esi, esi
jge 0x4224d1
test eax, eax
je 0x4224d1
cmp eax, ecx
jne 0x4224c5
test eax, eax
jge 0x4224c4
inc eax
mov ecx, eax
sub ecx, edi
mov dword [ebp + 0x130], ecx
jmp 0x4224d9
dec eax
mov ecx, eax
sub ecx, edi
mov dword [ebp + 0x130], ecx
jmp 0x4224d9
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 0x422532
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 0x42253d
imul eax, esi
add eax, 0x200
sar eax, 0xa
neg eax
test ebx, ebx
je 0x42256d
test esi, esi
jge 0x42256d
test eax, eax
je 0x42256d
cmp eax, ecx
jne 0x422561
test eax, eax
jge 0x422560
inc eax
mov ecx, eax
sub ecx, edx
mov dword [ebp + 0x134], ecx
jmp 0x422575
dec eax
mov ecx, eax
sub ecx, edx
mov dword [ebp + 0x134], ecx
jmp 0x422575
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 0x4225d6
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
jg 0x4225d6
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 0x421d62
jmp 0x4225d6
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0xa0]
cmp dword [esp + 0x10], esi
je 0x422668
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.004ba280
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp dword [ecx + 0xf8], 0
mov dword [ecx + 0x88], 1
mov dword [esp + 0x10], esi
je 0x422668
cmp dword [ecx + 0x104], 0x10
jae 0x42263c
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 0x422766
mov ebp, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x84]
add ebp, 0x160
test ebx, ebx
je 0x422766
lea eax, [ebp + 0x30]
mov edi, edi
mov ecx, dword [ebp]
dec ebx
test ecx, ecx
jle 0x422758
cmp ecx, 8
jg 0x422758
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 0x422690
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x9c]
mov edi, dword [esp + 0x98]
push esi
push ebp
mov eax, edi
call fcn.00423780
mov eax, dword [esp + 0x20]
add esp, 8
test al, al
jns 0x4227c2
test byte [edi + 0x9c], 0x10
je 0x4227c2
test eax, 0x40000004
mov eax, esi
jne 0x4227a1
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.004256b0
mov eax, dword [esp + 0x18]
test eax, 0x40000000
je 0x4227ee
lea eax, [ebp + esi*8]
lea ecx, [ebp + esi*4]
mov edx, esi
test esi, esi
je 0x4227ee
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 0x4227d7
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