Function at 0x421640
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 0x4216c0
sub eax, edx
add eax, ecx
mov ebx, eax
mov dword [esp + 0xa0], ebx
jmp 0x4216c7
mov ebx, dword [esp + 0xa0]
cmp dword [edi + 0x88], 0
je 0x42172a
mov eax, 1
cmp dword [esi + 0xa4], eax
je 0x4216fd
cmp dword [esi + 0x1c], eax
je 0x4216fd
test byte [esp + 0x18], 4
jne 0x4216fd
mov ecx, dword [esp + 0x9c]
lea eax, [ebx*8]
push eax
push 0
push ecx
jmp 0x42170f
mov eax, dword [esp + 0x9c]
lea edx, [ebx*4]
push edx
push 0
push eax
call fcn.004b8df0
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 0x421745
cmp dword [edi + 0x74], 0
jne 0x421745
mov eax, dword [esp + 0x3c]
add eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x421ad7
test edx, 0x40000004
je 0x4218f1
mov ebp, dword [esp + 0x9c]
lea ebx, [ebp + ebx*4]
mov dword [esp + 0x38], ebx
test ecx, ecx
je 0x4217a8
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x10], ecx
mov esi, ebp
cmp ebp, ebx
jae 0x4217be
push 0
push 0
mov edx, edi
call fcn.00424130
mov dword [esi], eax
add esi, 4
cmp eax, 0x80000000
je 0x42179d
cmp esi, ebx
jb 0x421780
jmp 0x4217be
sub esi, ebp
sar esi, 2
mov dword [esp + 0x10], esi
jmp 0x4217be
mov edx, dword [esp + 0xa0]
push edx
push ebp
push edi
call fcn.00424820
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], ebp
cmp ebp, ebx
jae 0x422596
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 0x421898
mov edi, edi
mov edx, dword [ecx]
dec ebp
cmp edx, 8
mov dword [esp + 0x48], ebp
jle 0x421821
test dl, 1
mov edx, dword [ecx + 0x10]
je 0x421811
lea eax, [edx + edx]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
xor edi, edi
jmp 0x42182f
mov eax, edx
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
sar eax, 1
add eax, edx
xor edi, edi
jmp 0x42182f
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 0x42185e
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 0x42186c
mov edx, esi
imul edx, eax
add edx, 0x200
sar edx, 0xa
add edx, ebx
test eax, eax
je 0x421887
test ebx, ebx
je 0x421887
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 0x4217f0
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [esp + 0x3c]
jg 0x4218da
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 0x4217d0
jmp 0x422596
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x9c]
sar eax, 2
mov dword [esp + 0x10], eax
jmp 0x422596
test eax, eax
jne 0x421ad7
test dword [esp + 0x18], 0x40000004
jne 0x421ad7
mov ebp, dword [esp + 0x9c]
lea eax, [ebp + ebx*8]
test ecx, ecx
je 0x421963
mov dword [esp + 0x10], ebx
mov esi, ebp
cmp ebp, eax
jae 0x421972
push 0
push 0
mov edx, edi
call fcn.00424130
mov dword [esi], eax
cmp eax, 0x80000000
je 0x421956
push 0
push 1
mov edx, edi
call fcn.00424130
mov dword [esi + 4], eax
cmp eax, 0x80000000
je 0x421956
add esi, 8
lea eax, [ebp + ebx*8]
cmp esi, eax
jb 0x421920
jmp 0x421972
sub esi, ebp
sar esi, 2
shr esi, 1
mov dword [esp + 0x10], esi
jmp 0x421972
push ebx
push ebp
push edi
call fcn.00424820
add esp, 0xc
mov dword [esp + 0x10], eax
mov esi, dword [edi + 0x84]
lea eax, [edi + 0x160]
test esi, esi
je 0x421a29
mov edi, dword [esp + 0x38]
lea ebx, [ebx]
dec esi
cmp edi, 0x10
jb 0x4219a1
mov ecx, ebx
mov edx, ebp
call fcn.004227d0
jmp 0x421a1e
test esi, esi
je 0x421a15
mov ecx, dword [eax]
cmp ecx, 0x11
jne 0x4219d6
mov edx, dword [eax + 0x60]
cmp edx, ecx
jne 0x4219c2
mov ecx, ebx
mov edx, ebp
call fcn.00423390
dec esi
add eax, 0x60
jmp 0x421a1e
cmp edx, 0x12
jne 0x4219d6
mov ecx, ebx
mov edx, ebp
call fcn.00423260
dec esi
add eax, 0x60
jmp 0x421a1e
cmp ecx, 0x12
jne 0x4219ef
cmp dword [eax + 0x60], ecx
jne 0x4219ef
mov ecx, ebx
mov edx, ebp
call fcn.004234c0
dec esi
add eax, 0x60
jmp 0x421a1e
cmp ecx, 1
jl 0x421a15
cmp ecx, 7
jg 0x421a15
mov ecx, dword [eax + 0x60]
cmp ecx, 1
jl 0x421a15
cmp ecx, 7
jg 0x421a15
mov ecx, ebx
mov edx, ebp
call fcn.00423600
dec esi
add eax, 0x60
jmp 0x421a1e
mov ecx, ebx
mov edx, ebp
call fcn.00422e20
add eax, 0x60
test esi, esi
jne 0x421990
test byte [esp + 0x18], 0x10
mov eax, ebp
lea esi, [ebp + ebx*8]
je 0x421a62
cmp ebp, esi
jae 0x421a88
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 0x421a40
jmp 0x421a84
cmp ebp, esi
jae 0x421a88
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 0x421a70
mov dword [esp + 0x28], edx
mov ecx, ebp
cmp ebp, esi
jae 0x421ac9
mov edi, dword [esp + 0x3c]
mov eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
jg 0x421abe
mov eax, dword [ecx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
jg 0x421abe
add ecx, 0x40
cmp ecx, esi
jb 0x421a92
mov eax, ebx
and eax, 7
mov dword [esp + 0x14], eax
jmp 0x422596
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 0x422596
xor edx, edx
cmp ecx, edx
je 0x421cf5
test dword [esp + 0x18], 0x40000004
je 0x421cf5
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jbe 0x422596
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push ecx
push 0
call fcn.00424130
mov ebp, eax
cmp ebp, 0x80000000
je 0x422596
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + 0x84]
add ecx, 0x160
test ebx, ebx
je 0x421be7
lea esp, [esp]
mov edx, dword [ecx]
mov esi, dword [esp + 0x14]
dec ebx
cmp edx, 8
mov dword [esp + 0x48], ebx
jle 0x421b74
test dl, 1
mov edx, dword [ecx + 0x10]
je 0x421b65
lea eax, [edx + edx]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
xor edi, edi
jmp 0x421b7e
lea eax, [edx + edx*2]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
sar eax, 1
xor edi, edi
jmp 0x421b7e
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 0x421bad
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 0x421bbb
mov edx, esi
imul edx, eax
add edx, 0x200
sar edx, 0xa
add edx, ebp
test eax, eax
je 0x421bd6
test ebp, ebp
je 0x421bd6
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 0x421b40
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc eax
and eax, 7
mov dword [esp + 0x14], eax
test dl, 0x40
je 0x421caa
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 0x421c47
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 0x421c52
imul eax, esi
add eax, 0x200
sar eax, 0xa
neg eax
test edx, 0x20000000
je 0x421c96
test esi, esi
jge 0x421c96
test eax, eax
je 0x421c96
cmp eax, ecx
jne 0x421c82
test eax, eax
jge 0x421c81
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 0x421cae
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 0x421cae
mov ecx, dword [esp + 0x40]
mov edx, ecx
neg edx
sub ecx, eax
mov dword [edi + 0x130], edx
add ebp, ecx
jmp 0x421cae
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 0x422596
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 0x421b06
jmp 0x422596
cmp eax, edx
je 0x422592
test dword [esp + 0x18], 0x40000004
jne 0x422592
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jbe 0x422596
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.00424130
mov esi, eax
mov dword [esp + 0x2c], esi
cmp esi, 0x80000000
je 0x422596
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x20]
push 1
call fcn.00424130
mov dword [esp + 0x30], eax
cmp eax, 0x80000000
je 0x422596
mov ebx, dword [esp + 0x18]
mov ecx, ebx
and ecx, 0x20
mov dword [esp + 0x4c], ecx
je 0x42200f
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 0x421ffa
lea esp, [esp]
mov ebx, dword [ecx]
dec ebp
test ebx, ebx
jle 0x421e8f
cmp ebx, 8
jle 0x421def
test bl, 1
je 0x421dd7
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 0x421dfb
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 0x421dfb
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 0x421e24
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 0x421e33
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 0x421e6f
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 0x421feb
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 0x421feb
cmp ebx, 0xffffffff
jne 0x421f29
mov eax, dword [ecx + 0x10]
movsx edx, ax
cmp eax, edx
je 0x421ec6
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 0x421ed5
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 0x421f0f
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 0x421feb
mov edx, dword [ecx + 0xc]
imul edx, esi
add edx, 0x200
sar edx, 0xa
add edi, edx
mov dword [esp + 0x20], edi
jmp 0x421feb
mov eax, dword [ecx + 0x30]
movsx edx, ax
cmp eax, edx
je 0x421f5b
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 0x421f6a
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 0x421fab
mov eax, dword [ecx + 0x10]
movsx edx, ax
cmp eax, edx
je 0x421fa3
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 0x421fe5
mov edx, dword [ecx + 8]
imul edx, eax
jmp 0x421fdc
movsx eax, di
cmp edi, eax
je 0x421fd6
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 0x421fe5
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 0x421db0
mov ebx, dword [esp + 0x18]
test bl, 0x10
je 0x42200f
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 0x42237c
mov ebx, dword [ecx]
dec ebp
mov dword [esp + 0x48], ebp
test ebx, ebx
jle 0x422174
cmp ebx, 8
jle 0x422082
mov edi, dword [ecx + 0x10]
mov eax, dword [ecx + 0x30]
test bl, 1
je 0x422062
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 0x422097
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 0x422097
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 0x4220c2
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 0x4220d0
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 0x422105
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 0x422113
mov edi, eax
imul edi, esi
add edi, 0x200
sar edi, 0xa
mov ebp, dword [esp + 0x30]
add edi, ebp
test edx, edx
je 0x422136
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x422136
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 0x422153
mov edx, dword [esp + 0x30]
test edx, edx
je 0x422153
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 0x42236d
cmp ebx, 0xffffffff
jne 0x422271
mov edi, dword [ecx + 0x10]
mov edx, dword [ecx + 8]
movsx eax, di
cmp edi, eax
je 0x4221ab
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 0x4221b9
mov esi, edx
imul esi, edi
add esi, 0x200
sar esi, 0xa
mov eax, dword [esp + 0x2c]
add esi, eax
test edi, edi
je 0x4221ef
test eax, eax
je 0x4221ef
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 0x4221e5
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 0x42221e
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 0x42222d
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 0x422265
test eax, eax
je 0x422265
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 0x42225b
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 0x42236d
mov edx, dword [ecx + 0x30]
movsx eax, dx
cmp edx, eax
je 0x42229f
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 0x4222ae
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 0x4222e6
test eax, eax
je 0x4222e6
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 0x4222dc
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 0x4222f7
mov esi, dword [ecx + 0x10]
mov dword [ecx + 0x10], eax
movsx edx, si
cmp esi, edx
mov edx, dword [ecx + 8]
je 0x422322
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 0x422330
mov edi, edx
imul edi, esi
add edi, 0x200
sar edi, 0xa
mov eax, dword [esp + 0x2c]
add edi, eax
test esi, esi
je 0x422366
test eax, eax
je 0x422366
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 0x42235c
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 0x422027
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 0x4223c3
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 0x4223e8
mov edx, edi
sar edx, 1
sub ecx, edx
add edi, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
jmp 0x4223cb
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
test bl, 0x10
je 0x4223e8
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 0x42253b
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 0x42244c
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 0x422459
mov eax, esi
imul eax, ecx
add eax, 0x200
sar eax, 0xa
neg eax
and ebx, 0x20000000
mov dword [esp + 0x4c], ebx
je 0x422491
test esi, esi
jge 0x422491
test eax, eax
je 0x422491
cmp eax, ecx
jne 0x422485
test eax, eax
jge 0x422484
inc eax
mov ecx, eax
sub ecx, edi
mov dword [ebp + 0x130], ecx
jmp 0x422499
dec eax
mov ecx, eax
sub ecx, edi
mov dword [ebp + 0x130], ecx
jmp 0x422499
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 0x4224f2
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 0x4224fd
imul eax, esi
add eax, 0x200
sar eax, 0xa
neg eax
test ebx, ebx
je 0x42252d
test esi, esi
jge 0x42252d
test eax, eax
je 0x42252d
cmp eax, ecx
jne 0x422521
test eax, eax
jge 0x422520
inc eax
mov ecx, eax
sub ecx, edx
mov dword [ebp + 0x134], ecx
jmp 0x422535
dec eax
mov ecx, eax
sub ecx, edx
mov dword [ebp + 0x134], ecx
jmp 0x422535
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 0x422596
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
jg 0x422596
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 0x421d22
jmp 0x422596
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0xa0]
cmp dword [esp + 0x10], esi
je 0x422628
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.004b8df0
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp dword [ecx + 0xf8], 0
mov dword [ecx + 0x88], 1
mov dword [esp + 0x10], esi
je 0x422628
cmp dword [ecx + 0x104], 0x10
jae 0x4225fc
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 0x422726
mov ebp, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x84]
add ebp, 0x160
test ebx, ebx
je 0x422726
lea eax, [ebp + 0x30]
mov edi, edi
mov ecx, dword [ebp]
dec ebx
test ecx, ecx
jle 0x422718
cmp ecx, 8
jg 0x422718
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 0x422650
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x9c]
mov edi, dword [esp + 0x98]
push esi
push ebp
mov eax, edi
call fcn.00423740
mov eax, dword [esp + 0x20]
add esp, 8
test al, al
jns 0x422782
test byte [edi + 0x9c], 0x10
je 0x422782
test eax, 0x40000004
mov eax, esi
jne 0x422761
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.00425670
mov eax, dword [esp + 0x18]
test eax, 0x40000000
je 0x4227ae
lea eax, [ebp + esi*8]
lea ecx, [ebp + esi*4]
mov edx, esi
test esi, esi
je 0x4227ae
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 0x422797
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