Function at 0x41e020
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 0x41e0a0
sub eax, edx
add eax, ecx
mov ebx, eax
mov dword [esp + 0xa0], ebx
jmp 0x41e0a7
mov ebx, dword [esp + 0xa0]
cmp dword [edi + 0x88], 0
je 0x41e10a
mov eax, 1
cmp dword [esi + 0xa4], eax
je 0x41e0dd
cmp dword [esi + 0x1c], eax
je 0x41e0dd
test byte [esp + 0x18], 4
jne 0x41e0dd
mov ecx, dword [esp + 0x9c]
lea eax, [ebx*8]
push eax
push 0
push ecx
jmp 0x41e0ef
mov eax, dword [esp + 0x9c]
lea edx, [ebx*4]
push edx
push 0
push eax
call fcn.00430560
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 0x41e125
cmp dword [edi + 0x74], 0
jne 0x41e125
mov eax, dword [esp + 0x3c]
add eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x41e4b7
test edx, 0x40000004
je 0x41e2d1
mov ebp, dword [esp + 0x9c]
lea ebx, [ebp + ebx*4]
mov dword [esp + 0x38], ebx
test ecx, ecx
je 0x41e188
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x10], ecx
mov esi, ebp
cmp ebp, ebx
jae 0x41e19e
push 0
push 0
mov edx, edi
call fcn.00420b10
mov dword [esi], eax
add esi, 4
cmp eax, 0x80000000
je 0x41e17d
cmp esi, ebx
jb 0x41e160
jmp 0x41e19e
sub esi, ebp
sar esi, 2
mov dword [esp + 0x10], esi
jmp 0x41e19e
mov edx, dword [esp + 0xa0]
push edx
push ebp
push edi
call fcn.00421200
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], ebp
cmp ebp, ebx
jae 0x41ef76
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 0x41e278
mov edi, edi
mov edx, dword [ecx]
dec ebp
cmp edx, 8
mov dword [esp + 0x48], ebp
jle 0x41e201
test dl, 1
mov edx, dword [ecx + 0x10]
je 0x41e1f1
lea eax, [edx + edx]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
xor edi, edi
jmp 0x41e20f
mov eax, edx
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
sar eax, 1
add eax, edx
xor edi, edi
jmp 0x41e20f
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 0x41e23e
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 0x41e24c
mov edx, esi
imul edx, eax
add edx, 0x200
sar edx, 0xa
add edx, ebx
test eax, eax
je 0x41e267
test ebx, ebx
je 0x41e267
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 0x41e1d0
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [esp + 0x3c]
jg 0x41e2ba
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 0x41e1b0
jmp 0x41ef76
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x9c]
sar eax, 2
mov dword [esp + 0x10], eax
jmp 0x41ef76
test eax, eax
jne 0x41e4b7
test dword [esp + 0x18], 0x40000004
jne 0x41e4b7
mov ebp, dword [esp + 0x9c]
lea eax, [ebp + ebx*8]
test ecx, ecx
je 0x41e343
mov dword [esp + 0x10], ebx
mov esi, ebp
cmp ebp, eax
jae 0x41e352
push 0
push 0
mov edx, edi
call fcn.00420b10
mov dword [esi], eax
cmp eax, 0x80000000
je 0x41e336
push 0
push 1
mov edx, edi
call fcn.00420b10
mov dword [esi + 4], eax
cmp eax, 0x80000000
je 0x41e336
add esi, 8
lea eax, [ebp + ebx*8]
cmp esi, eax
jb 0x41e300
jmp 0x41e352
sub esi, ebp
sar esi, 2
shr esi, 1
mov dword [esp + 0x10], esi
jmp 0x41e352
push ebx
push ebp
push edi
call fcn.00421200
add esp, 0xc
mov dword [esp + 0x10], eax
mov esi, dword [edi + 0x84]
lea eax, [edi + 0x160]
test esi, esi
je 0x41e409
mov edi, dword [esp + 0x38]
lea ebx, [ebx]
dec esi
cmp edi, 0x10
jb 0x41e381
mov ecx, ebx
mov edx, ebp
call fcn.0041f1b0
jmp 0x41e3fe
test esi, esi
je 0x41e3f5
mov ecx, dword [eax]
cmp ecx, 0x11
jne 0x41e3b6
mov edx, dword [eax + 0x60]
cmp edx, ecx
jne 0x41e3a2
mov ecx, ebx
mov edx, ebp
call fcn.0041fd70
dec esi
add eax, 0x60
jmp 0x41e3fe
cmp edx, 0x12
jne 0x41e3b6
mov ecx, ebx
mov edx, ebp
call fcn.0041fc40
dec esi
add eax, 0x60
jmp 0x41e3fe
cmp ecx, 0x12
jne 0x41e3cf
cmp dword [eax + 0x60], ecx
jne 0x41e3cf
mov ecx, ebx
mov edx, ebp
call fcn.0041fea0
dec esi
add eax, 0x60
jmp 0x41e3fe
cmp ecx, 1
jl 0x41e3f5
cmp ecx, 7
jg 0x41e3f5
mov ecx, dword [eax + 0x60]
cmp ecx, 1
jl 0x41e3f5
cmp ecx, 7
jg 0x41e3f5
mov ecx, ebx
mov edx, ebp
call fcn.0041ffe0
dec esi
add eax, 0x60
jmp 0x41e3fe
mov ecx, ebx
mov edx, ebp
call fcn.0041f800
add eax, 0x60
test esi, esi
jne 0x41e370
test byte [esp + 0x18], 0x10
mov eax, ebp
lea esi, [ebp + ebx*8]
je 0x41e442
cmp ebp, esi
jae 0x41e468
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 0x41e420
jmp 0x41e464
cmp ebp, esi
jae 0x41e468
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 0x41e450
mov dword [esp + 0x28], edx
mov ecx, ebp
cmp ebp, esi
jae 0x41e4a9
mov edi, dword [esp + 0x3c]
mov eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
jg 0x41e49e
mov eax, dword [ecx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
jg 0x41e49e
add ecx, 0x40
cmp ecx, esi
jb 0x41e472
mov eax, ebx
and eax, 7
mov dword [esp + 0x14], eax
jmp 0x41ef76
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 0x41ef76
xor edx, edx
cmp ecx, edx
je 0x41e6d5
test dword [esp + 0x18], 0x40000004
je 0x41e6d5
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jbe 0x41ef76
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push ecx
push 0
call fcn.00420b10
mov ebp, eax
cmp ebp, 0x80000000
je 0x41ef76
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + 0x84]
add ecx, 0x160
test ebx, ebx
je 0x41e5c7
lea esp, [esp]
mov edx, dword [ecx]
mov esi, dword [esp + 0x14]
dec ebx
cmp edx, 8
mov dword [esp + 0x48], ebx
jle 0x41e554
test dl, 1
mov edx, dword [ecx + 0x10]
je 0x41e545
lea eax, [edx + edx]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
xor edi, edi
jmp 0x41e55e
lea eax, [edx + edx*2]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
sar eax, 1
xor edi, edi
jmp 0x41e55e
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 0x41e58d
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 0x41e59b
mov edx, esi
imul edx, eax
add edx, 0x200
sar edx, 0xa
add edx, ebp
test eax, eax
je 0x41e5b6
test ebp, ebp
je 0x41e5b6
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 0x41e520
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc eax
and eax, 7
mov dword [esp + 0x14], eax
test dl, 0x40
je 0x41e68a
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 0x41e627
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 0x41e632
imul eax, esi
add eax, 0x200
sar eax, 0xa
neg eax
test edx, 0x20000000
je 0x41e676
test esi, esi
jge 0x41e676
test eax, eax
je 0x41e676
cmp eax, ecx
jne 0x41e662
test eax, eax
jge 0x41e661
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 0x41e68e
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 0x41e68e
mov ecx, dword [esp + 0x40]
mov edx, ecx
neg edx
sub ecx, eax
mov dword [edi + 0x130], edx
add ebp, ecx
jmp 0x41e68e
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 0x41ef76
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 0x41e4e6
jmp 0x41ef76
cmp eax, edx
je 0x41ef72
test dword [esp + 0x18], 0x40000004
jne 0x41ef72
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jbe 0x41ef76
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.00420b10
mov esi, eax
mov dword [esp + 0x2c], esi
cmp esi, 0x80000000
je 0x41ef76
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x20]
push 1
call fcn.00420b10
mov dword [esp + 0x30], eax
cmp eax, 0x80000000
je 0x41ef76
mov ebx, dword [esp + 0x18]
mov ecx, ebx
and ecx, 0x20
mov dword [esp + 0x4c], ecx
je 0x41e9ef
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 0x41e9da
lea esp, [esp]
mov ebx, dword [ecx]
dec ebp
test ebx, ebx
jle 0x41e86f
cmp ebx, 8
jle 0x41e7cf
test bl, 1
je 0x41e7b7
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 0x41e7db
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 0x41e7db
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 0x41e804
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 0x41e813
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 0x41e84f
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 0x41e9cb
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 0x41e9cb
cmp ebx, 0xffffffff
jne 0x41e909
mov eax, dword [ecx + 0x10]
movsx edx, ax
cmp eax, edx
je 0x41e8a6
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 0x41e8b5
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 0x41e8ef
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 0x41e9cb
mov edx, dword [ecx + 0xc]
imul edx, esi
add edx, 0x200
sar edx, 0xa
add edi, edx
mov dword [esp + 0x20], edi
jmp 0x41e9cb
mov eax, dword [ecx + 0x30]
movsx edx, ax
cmp eax, edx
je 0x41e93b
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 0x41e94a
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 0x41e98b
mov eax, dword [ecx + 0x10]
movsx edx, ax
cmp eax, edx
je 0x41e983
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 0x41e9c5
mov edx, dword [ecx + 8]
imul edx, eax
jmp 0x41e9bc
movsx eax, di
cmp edi, eax
je 0x41e9b6
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 0x41e9c5
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 0x41e790
mov ebx, dword [esp + 0x18]
test bl, 0x10
je 0x41e9ef
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 0x41ed5c
mov ebx, dword [ecx]
dec ebp
mov dword [esp + 0x48], ebp
test ebx, ebx
jle 0x41eb54
cmp ebx, 8
jle 0x41ea62
mov edi, dword [ecx + 0x10]
mov eax, dword [ecx + 0x30]
test bl, 1
je 0x41ea42
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 0x41ea77
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 0x41ea77
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 0x41eaa2
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 0x41eab0
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 0x41eae5
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 0x41eaf3
mov edi, eax
imul edi, esi
add edi, 0x200
sar edi, 0xa
mov ebp, dword [esp + 0x30]
add edi, ebp
test edx, edx
je 0x41eb16
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x41eb16
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 0x41eb33
mov edx, dword [esp + 0x30]
test edx, edx
je 0x41eb33
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 0x41ed4d
cmp ebx, 0xffffffff
jne 0x41ec51
mov edi, dword [ecx + 0x10]
mov edx, dword [ecx + 8]
movsx eax, di
cmp edi, eax
je 0x41eb8b
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 0x41eb99
mov esi, edx
imul esi, edi
add esi, 0x200
sar esi, 0xa
mov eax, dword [esp + 0x2c]
add esi, eax
test edi, edi
je 0x41ebcf
test eax, eax
je 0x41ebcf
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 0x41ebc5
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 0x41ebfe
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 0x41ec0d
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 0x41ec45
test eax, eax
je 0x41ec45
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 0x41ec3b
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 0x41ed4d
mov edx, dword [ecx + 0x30]
movsx eax, dx
cmp edx, eax
je 0x41ec7f
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 0x41ec8e
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 0x41ecc6
test eax, eax
je 0x41ecc6
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 0x41ecbc
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 0x41ecd7
mov esi, dword [ecx + 0x10]
mov dword [ecx + 0x10], eax
movsx edx, si
cmp esi, edx
mov edx, dword [ecx + 8]
je 0x41ed02
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 0x41ed10
mov edi, edx
imul edi, esi
add edi, 0x200
sar edi, 0xa
mov eax, dword [esp + 0x2c]
add edi, eax
test esi, esi
je 0x41ed46
test eax, eax
je 0x41ed46
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 0x41ed3c
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 0x41ea07
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 0x41eda3
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 0x41edc8
mov edx, edi
sar edx, 1
sub ecx, edx
add edi, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
jmp 0x41edab
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
test bl, 0x10
je 0x41edc8
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 0x41ef1b
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 0x41ee2c
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 0x41ee39
mov eax, esi
imul eax, ecx
add eax, 0x200
sar eax, 0xa
neg eax
and ebx, 0x20000000
mov dword [esp + 0x4c], ebx
je 0x41ee71
test esi, esi
jge 0x41ee71
test eax, eax
je 0x41ee71
cmp eax, ecx
jne 0x41ee65
test eax, eax
jge 0x41ee64
inc eax
mov ecx, eax
sub ecx, edi
mov dword [ebp + 0x130], ecx
jmp 0x41ee79
dec eax
mov ecx, eax
sub ecx, edi
mov dword [ebp + 0x130], ecx
jmp 0x41ee79
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 0x41eed2
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 0x41eedd
imul eax, esi
add eax, 0x200
sar eax, 0xa
neg eax
test ebx, ebx
je 0x41ef0d
test esi, esi
jge 0x41ef0d
test eax, eax
je 0x41ef0d
cmp eax, ecx
jne 0x41ef01
test eax, eax
jge 0x41ef00
inc eax
mov ecx, eax
sub ecx, edx
mov dword [ebp + 0x134], ecx
jmp 0x41ef15
dec eax
mov ecx, eax
sub ecx, edx
mov dword [ebp + 0x134], ecx
jmp 0x41ef15
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 0x41ef76
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
jg 0x41ef76
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 0x41e702
jmp 0x41ef76
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0xa0]
cmp dword [esp + 0x10], esi
je 0x41f008
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.00430560
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp dword [ecx + 0xf8], 0
mov dword [ecx + 0x88], 1
mov dword [esp + 0x10], esi
je 0x41f008
cmp dword [ecx + 0x104], 0x10
jae 0x41efdc
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 0x41f106
mov ebp, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x84]
add ebp, 0x160
test ebx, ebx
je 0x41f106
lea eax, [ebp + 0x30]
mov edi, edi
mov ecx, dword [ebp]
dec ebx
test ecx, ecx
jle 0x41f0f8
cmp ecx, 8
jg 0x41f0f8
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 0x41f030
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x9c]
mov edi, dword [esp + 0x98]
push esi
push ebp
mov eax, edi
call fcn.00420120
mov eax, dword [esp + 0x20]
add esp, 8
test al, al
jns 0x41f162
test byte [edi + 0x9c], 0x10
je 0x41f162
test eax, 0x40000004
mov eax, esi
jne 0x41f141
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.00422050
mov eax, dword [esp + 0x18]
test eax, 0x40000000
je 0x41f18e
lea eax, [ebp + esi*8]
lea ecx, [ebp + esi*4]
mov edx, esi
test esi, esi
je 0x41f18e
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 0x41f177
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