Function at 0x52141c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe10
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x1ec]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
lea edi, [ebp - 0x1dc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x1c], 0
je 0x52312a
mov dl, 7
mov eax, dword [ebp + 0x1c]
call fcn.00437448
lea eax, [ebp - 0x1dc]
mov dl, 1
call fcn.0053d68c
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x1ec]
mov dl, 1
call fcn.0053d68c
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x48]
jge 0x521487
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
jmp 0x52148d
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x50], eax
cmp ebx, dword [ebp - 0x50]
jge 0x5214ab
mov dword [ebp - 0x54], ebx
jmp 0x5214b1
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x58], eax
cmp ebx, dword [ebp - 0x58]
jge 0x5214cf
mov dword [ebp - 0x5c], ebx
jmp 0x5214d5
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov ebx, dword [ebp - 0x5c]
dec ebx
test ebx, ebx
jl 0x52312a
lea eax, [ebp - 0x1dc]
mov dl, 1
call fcn.0053d678
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x1ec]
mov dl, 1
call fcn.0053d678
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x64]
jge 0x521511
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
jmp 0x521517
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x6c]
jge 0x52153e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
jmp 0x521544
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x74]
jge 0x52156b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x78], eax
jmp 0x521571
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x52312a
mov eax, dword [ebp - 0x1ec]
cmp eax, dword [ebp - 0x1dc]
jle 0x5215ed
cmp dword [ebp - 0x1dc], 0
jge 0x521657
mov eax, dword [ebp - 0x1dc]
neg eax
add dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1dc]
neg eax
sub dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x7c]
jge 0x5215de
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x80], eax
jmp 0x5215e4
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
dec eax
mov dword [ebp - 0x14], eax
jmp 0x521657
cmp dword [ebp - 0x1ec], 0
jge 0x521657
mov eax, dword [ebp - 0x1ec]
neg eax
add dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1ec]
neg eax
sub dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x84]
jge 0x521641
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], eax
jmp 0x52164d
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
dec eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1e8]
cmp eax, dword [ebp - 0x1d8]
jle 0x5216cb
cmp dword [ebp - 0x1d8], 0
jge 0x52172b
mov eax, dword [ebp - 0x1d8]
neg eax
add dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1d8]
neg eax
sub ebx, eax
xor eax, eax
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x8c], eax
cmp ebx, dword [ebp - 0x8c]
jge 0x5216b6
mov dword [ebp - 0x90], ebx
jmp 0x5216c2
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov ebx, dword [ebp - 0x90]
dec ebx
jmp 0x52172b
cmp dword [ebp - 0x1e8], 0
jge 0x52172b
mov eax, dword [ebp - 0x1e8]
neg eax
add dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1e8]
neg eax
sub ebx, eax
xor eax, eax
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x94], eax
cmp ebx, dword [ebp - 0x94]
jge 0x521718
mov dword [ebp - 0x98], ebx
jmp 0x521724
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov ebx, dword [ebp - 0x98]
dec ebx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x9c]
jge 0x521755
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], eax
jmp 0x521761
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x1ec]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xa4]
jge 0x521794
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa8], eax
jmp 0x5217a0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0x1fffffff
je 0x522908
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0x18]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fdiv dword [0x523134]
fstp qword [ebp - 0x28]
wait
movzx eax, byte [ebp - 0x17]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fdiv dword [0x523134]
fstp qword [ebp - 0x30]
wait
movzx eax, byte [ebp - 0x16]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fdiv dword [0x523134]
fstp qword [ebp - 0x38]
wait
cmp dword [ebp + 0xc], 0
je 0x521e8c
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x521b07
test ebx, ebx
jl 0x5224ef
inc ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1d8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004365c8
mov esi, eax
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.004365c8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x521af6
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 0x1dc]
add ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x1ec]
add edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0x19]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 0x1a]
movzx edx, byte [ebp - 0x1b]
add eax, edx
movzx edx, byte [ebp - 0x1c]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x1d], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x28]
call fcn.00403638
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edx
cmp dword [ebp - 0xac], 0
jne 0x5218fd
cmp dword [ebp - 0xb0], 0xff
jae 0x521919
jmp 0x5218ff
jge 0x521919
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb4], eax
jmp 0x52192d
mov dword [ebp - 0xb8], 0xff
mov dword [ebp - 0xb4], 0
movzx eax, byte [ebp - 0x1e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xb4]
push edx
push eax
movzx eax, byte [esi + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4 + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x30]
call fcn.00403638
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
cmp dword [ebp - 0xbc], 0
jne 0x5219b6
cmp dword [ebp - 0xc0], 0xff
jae 0x5219d2
jmp 0x5219b8
jge 0x5219d2
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
jmp 0x5219e6
mov dword [ebp - 0xc8], 0xff
mov dword [ebp - 0xc4], 0
movzx eax, byte [ebp - 0x1e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xc4]
push edx
push eax
movzx eax, byte [esi + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4 + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x38]
call fcn.00403638
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], edx
cmp dword [ebp - 0xcc], 0
jne 0x521a6f
cmp dword [ebp - 0xd0], 0xff
jae 0x521a8b
jmp 0x521a71
jge 0x521a8b
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], eax
jmp 0x521a9f
mov dword [ebp - 0xd8], 0xff
mov dword [ebp - 0xd4], 0
movzx eax, byte [ebp - 0x1e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xd4]
push edx
push eax
movzx eax, byte [esi + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4], al
inc dword [ebp - 0xc]
dec dword [ebp - 0x40]
jne 0x521872
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x521835
jmp 0x5224ef
test ebx, ebx
jl 0x5224ef
inc ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1d8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004365c8
mov esi, eax
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.004365c8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x1dc]
mov edi, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x521e7b
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xff00ff
je 0x521dd4
movzx eax, byte [ebp - 0x19]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 0x1a]
movzx edx, byte [ebp - 0x1b]
add eax, edx
movzx edx, byte [ebp - 0x1c]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x1d], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x28]
call fcn.00403638
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
cmp dword [ebp - 0xdc], 0
jne 0x521be2
cmp dword [ebp - 0xe0], 0xff
jae 0x521bfe
jmp 0x521be4
jge 0x521bfe
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe4], eax
jmp 0x521c12
mov dword [ebp - 0xe8], 0xff
mov dword [ebp - 0xe4], 0
movzx eax, byte [ebp - 0x1e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xe8]
mov edx, dword [ebp - 0xe4]
push edx
push eax
movzx eax, byte [esi + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4 + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x28]
call fcn.00403638
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], edx
cmp dword [ebp - 0xec], 0
jne 0x521c9b
cmp dword [ebp - 0xf0], 0xff
jae 0x521cb7
jmp 0x521c9d
jge 0x521cb7
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xf4], eax
jmp 0x521ccb
mov dword [ebp - 0xf8], 0xff
mov dword [ebp - 0xf4], 0
movzx eax, byte [ebp - 0x1e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xf8]
mov edx, dword [ebp - 0xf4]
push edx
push eax
movzx eax, byte [esi + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4 + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x28]
call fcn.00403638
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], edx
cmp dword [ebp - 0xfc], 0
jne 0x521d54
cmp dword [ebp - 0x100], 0xff
jae 0x521d70
jmp 0x521d56
jge 0x521d70
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x104], eax
jmp 0x521d84
mov dword [ebp - 0x108], 0xff
mov dword [ebp - 0x104], 0
movzx eax, byte [ebp - 0x1e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 0x104]
push edx
push eax
movzx eax, byte [esi + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4], al
jmp 0x521e70
cmp byte [ebp + 0x14], 0
je 0x521e70
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x1d8]
add edx, dword [ebp - 0x10]
cmp eax, edx
jle 0x521e72
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x521e7b
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x1d8]
add eax, dword [ebp - 0x10]
test eax, eax
jl 0x521e7b
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x521e72
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.00436458
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x1d8]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
call fcn.00431da4
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0x18]
mov byte [esi + ebx*4 + 2], al
movzx eax, byte [ebp - 0x17]
mov byte [esi + ebx*4 + 1], al
movzx eax, byte [ebp - 0x16]
mov byte [esi + ebx*4], al
inc ebx
inc edi
dec dword [ebp - 0x40]
jne 0x521b5c
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x521b1a
jmp 0x5224ef
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x52216b
test ebx, ebx
jl 0x5224ef
inc ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1d8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004365c8
mov esi, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x68]
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.004365c8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x1dc]
mov edi, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x52215a
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0x1a]
movzx edx, byte [ebp - 0x1b]
add eax, edx
movzx edx, byte [ebp - 0x1c]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x1d], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x28]
call fcn.00403638
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], edx
cmp dword [ebp - 0x10c], 0
jne 0x521f56
cmp dword [ebp - 0x110], 0xff
jae 0x521f72
jmp 0x521f58
jge 0x521f72
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x114], eax
jmp 0x521f86
mov dword [ebp - 0x118], 0xff
mov dword [ebp - 0x114], 0
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
push edx
push eax
movzx eax, byte [esi + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4 + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x30]
call fcn.00403638
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], edx
cmp dword [ebp - 0x11c], 0
jne 0x522013
cmp dword [ebp - 0x120], 0xff
jae 0x52202f
jmp 0x522015
jge 0x52202f
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x124], eax
jmp 0x522043
mov dword [ebp - 0x128], 0xff
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x128]
mov edx, dword [ebp - 0x124]
push edx
push eax
movzx eax, byte [esi + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4 + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x38]
call fcn.00403638
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], edx
cmp dword [ebp - 0x12c], 0
jne 0x5220d0
cmp dword [ebp - 0x130], 0xff
jae 0x5220ec
jmp 0x5220d2
jge 0x5220ec
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x134], eax
jmp 0x522100
mov dword [ebp - 0x138], 0xff
mov dword [ebp - 0x134], 0
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x138]
mov edx, dword [ebp - 0x134]
push edx
push eax
movzx eax, byte [esi + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4], al
inc ebx
inc edi
dec dword [ebp - 0x40]
jne 0x521ef6
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x521eac
jmp 0x5224ef
test ebx, ebx
jl 0x5224ef
inc ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1d8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004365c8
mov esi, eax
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.004365c8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x1dc]
mov edi, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x5224e3
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0x1a]
movzx edx, byte [ebp - 0x1b]
add eax, edx
movzx edx, byte [ebp - 0x1c]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x1d], al
cmp dword [ebp - 0x1c], 0xff00ff
je 0x522432
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x28]
call fcn.00403638
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], edx
cmp dword [ebp - 0x13c], 0
jne 0x522234
cmp dword [ebp - 0x140], 0xff
jae 0x522250
jmp 0x522236
jge 0x522250
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x144], eax
jmp 0x522264
mov dword [ebp - 0x148], 0xff
mov dword [ebp - 0x144], 0
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
push edx
push eax
movzx eax, byte [esi + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4 + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x30]
call fcn.00403638
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], edx
cmp dword [ebp - 0x14c], 0
jne 0x5222f1
cmp dword [ebp - 0x150], 0xff
jae 0x52230d
jmp 0x5222f3
jge 0x52230d
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x154], eax
jmp 0x522321
mov dword [ebp - 0x158], 0xff
mov dword [ebp - 0x154], 0
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x158]
mov edx, dword [ebp - 0x154]
push edx
push eax
movzx eax, byte [esi + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4 + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x38]
call fcn.00403638
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], edx
cmp dword [ebp - 0x15c], 0
jne 0x5223ae
cmp dword [ebp - 0x160], 0xff
jae 0x5223ca
jmp 0x5223b0
jge 0x5223ca
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x164], eax
jmp 0x5223de
mov dword [ebp - 0x168], 0xff
mov dword [ebp - 0x164], 0
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x168]
mov edx, dword [ebp - 0x164]
push edx
push eax
movzx eax, byte [esi + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4], al
jmp 0x5224d5
cmp byte [ebp + 0x14], 0
je 0x5224d5
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x1d8]
add edx, dword [ebp - 0x10]
cmp eax, edx
jle 0x5224d7
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x5224e3
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x1d8]
add eax, dword [ebp - 0x10]
test eax, eax
jl 0x5224e3
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x5224d7
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.00436458
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x1d8]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x1dc]
add edx, dword [ebp - 0xc]
call fcn.00431da4
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0x18]
mov byte [esi + ebx*4 + 2], al
movzx eax, byte [ebp - 0x17]
mov byte [esi + ebx*4 + 1], al
movzx eax, byte [ebp - 0x16]
mov byte [esi + ebx*4], al
inc ebx
inc edi
inc dword [ebp - 0xc]
dec dword [ebp - 0x40]
jne 0x5221c7
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x52217e
cmp byte [ebp + 8], 0
je 0x52312a
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x522508
adc eax, 0
dec eax
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x1d0]
dec eax
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x16c]
cmp eax, dword [ebp - 0x170]
jge 0x522540
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x174], eax
jmp 0x52254c
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x174], eax
mov ebx, dword [ebp - 0x174]
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x522561
adc eax, 0
push eax
mov eax, 0xff
pop edx
mov ecx, edx
cdq
idiv ecx
mov byte [ebp - 0x15], al
mov byte [ebp - 0x18], 0xff
test ebx, ebx
jle 0x52312a
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x1d0]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004365c8
mov esi, eax
mov edx, dword [ebp - 0x1e0]
sub edx, dword [ebp - 0x10]
dec edx
mov eax, dword [ebp + 0x1c]
call fcn.004365c8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x1dc]
mov edi, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x5228f0
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xff00ff
je 0x5228e5
cmp dword [ebp + 0xc], 0
jne 0x52263c
movzx eax, byte [ebp - 0x19]
mov ecx, 3
xor edx, edx
div ecx
movzx edx, byte [ebp - 0x18]
imul edx
mov ecx, 0xff
xor edx, edx
div ecx
test eax, eax
jle 0x522629
movzx eax, byte [ebp - 0x19]
mov ecx, 3
xor edx, edx
div ecx
movzx edx, byte [ebp - 0x18]
imul edx
mov ecx, 0xff
xor edx, edx
div ecx
mov dword [ebp - 0x178], eax
jmp 0x522631
xor eax, eax
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x178]
mov byte [ebp - 0x1e], al
jmp 0x5226a1
movzx eax, byte [ebp - 0x19]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x12c
cdq
idiv ecx
movzx edx, byte [ebp - 0x18]
imul edx
mov ecx, 0xff
cdq
idiv ecx
test eax, eax
jle 0x522690
movzx eax, byte [ebp - 0x19]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x12c
cdq
idiv ecx
movzx edx, byte [ebp - 0x18]
imul edx
mov ecx, 0xff
cdq
idiv ecx
mov dword [ebp - 0x17c], eax
jmp 0x522698
xor eax, eax
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 0x1a]
movzx edx, byte [ebp - 0x1b]
add eax, edx
movzx edx, byte [ebp - 0x1c]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x1d], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x28]
call fcn.00403638
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], edx
cmp dword [ebp - 0x184], 0
jne 0x5226f8
cmp dword [ebp - 0x188], 0xff
jae 0x522714
jmp 0x5226fa
jge 0x522714
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x18c], eax
jmp 0x522728
mov dword [ebp - 0x190], 0xff
mov dword [ebp - 0x18c], 0
movzx eax, byte [ebp - 0x1e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x190]
mov edx, dword [ebp - 0x18c]
push edx
push eax
movzx eax, byte [esi + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4 + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x30]
call fcn.00403638
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], edx
cmp dword [ebp - 0x194], 0
jne 0x5227b1
cmp dword [ebp - 0x198], 0xff
jae 0x5227cd
jmp 0x5227b3
jge 0x5227cd
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x19c], eax
jmp 0x5227e1
mov dword [ebp - 0x1a0], 0xff
mov dword [ebp - 0x19c], 0
movzx eax, byte [ebp - 0x1e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1a0]
mov edx, dword [ebp - 0x19c]
push edx
push eax
movzx eax, byte [esi + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4 + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x1f0], eax
fild dword [ebp - 0x1f0]
fmul qword [ebp - 0x38]
call fcn.00403638
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], edx
cmp dword [ebp - 0x1a4], 0
jne 0x52286a
cmp dword [ebp - 0x1a8], 0xff
jae 0x522886
jmp 0x52286c
jge 0x522886
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1ac], eax
jmp 0x52289a
mov dword [ebp - 0x1b0], 0xff
mov dword [ebp - 0x1ac], 0
movzx eax, byte [ebp - 0x1e]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1b0]
mov edx, dword [ebp - 0x1ac]
push edx
push eax
movzx eax, byte [esi + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00406740
push edx
push eax
movzx eax, byte [esi + ebx*4]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4], al
inc ebx
inc edi
dec dword [ebp - 0x40]
jne 0x5225c9
movzx eax, byte [ebp - 0x15]
sub byte [ebp - 0x18], al
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x522586
jmp 0x52312a
cmp dword [ebp + 0xc], 0
je 0x522bd3
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x522a29
test ebx, ebx
jl 0x522ef1
inc ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1d8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004365c8
mov esi, eax
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.004365c8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x522a18
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 0x1dc]
add ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x1ec]
add edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0x19]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 0x1a]
movzx edx, byte [esi + ebx*4 + 2]
sub eax, edx
movzx edx, byte [ebp - 0x1e]
imul edx
movzx edx, byte [esi + ebx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
movzx eax, byte [ebp - 0x1b]
movzx edx, byte [esi + ebx*4 + 1]
sub eax, edx
movzx edx, byte [ebp - 0x1e]
imul edx
movzx edx, byte [esi + ebx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
movzx eax, byte [ebp - 0x1c]
movzx edx, byte [esi + ebx*4]
sub eax, edx
movzx edx, byte [ebp - 0x1e]
imul edx
movzx edx, byte [esi + ebx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4], al
inc dword [ebp - 0xc]
dec dword [ebp - 0x40]
jne 0x52296f
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x522932
jmp 0x522ef1
test ebx, ebx
jl 0x522ef1
inc ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1d8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004365c8
mov esi, eax
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.004365c8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x1dc]
mov edi, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x522bc2
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xff00ff
je 0x522b1b
movzx eax, byte [ebp - 0x19]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 0x1a]
movzx edx, byte [esi + ebx*4 + 2]
sub eax, edx
movzx edx, byte [ebp - 0x1e]
imul edx
movzx edx, byte [esi + ebx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
movzx eax, byte [ebp - 0x1b]
movzx edx, byte [esi + ebx*4 + 1]
sub eax, edx
movzx edx, byte [ebp - 0x1e]
imul edx
movzx edx, byte [esi + ebx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
movzx eax, byte [ebp - 0x1c]
movzx edx, byte [esi + ebx*4]
sub eax, edx
movzx edx, byte [ebp - 0x1e]
imul edx
movzx edx, byte [esi + ebx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4], al
jmp 0x522bb7
cmp byte [ebp + 0x14], 0
je 0x522bb7
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x1d8]
add edx, dword [ebp - 0x10]
cmp eax, edx
jle 0x522bb9
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x522bc2
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x1d8]
add eax, dword [ebp - 0x10]
test eax, eax
jl 0x522bc2
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x522bb9
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.00436458
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x1d8]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
call fcn.00431da4
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0x18]
mov byte [esi + ebx*4 + 2], al
movzx eax, byte [ebp - 0x17]
mov byte [esi + ebx*4 + 1], al
movzx eax, byte [ebp - 0x16]
mov byte [esi + ebx*4], al
inc ebx
inc edi
dec dword [ebp - 0x40]
jne 0x522a7e
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x522a3c
jmp 0x522ef1
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x10], 0
jne 0x522d07
test ebx, ebx
jl 0x522ef1
inc ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1d8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004365c8
mov esi, eax
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.004365c8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x1dc]
mov edi, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x522cf6
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 2]
movzx edx, byte [esi + ebx*4 + 2]
sub eax, edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi*4 + 3]
imul edx
movzx edx, byte [esi + ebx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 1]
movzx edx, byte [esi + ebx*4 + 1]
sub eax, edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi*4 + 3]
imul edx
movzx edx, byte [esi + ebx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4]
movzx edx, byte [esi + ebx*4]
sub eax, edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi*4 + 3]
imul edx
movzx edx, byte [esi + ebx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
movzx edx, byte [esi + ebx*4 + 3]
cmp eax, edx
jge 0x522cd3
movzx eax, byte [esi + ebx*4 + 3]
mov dword [ebp - 0x1b4], eax
jmp 0x522ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1b4]
mov byte [esi + ebx*4 + 3], al
inc ebx
inc edi
dec dword [ebp - 0x40]
jne 0x522c35
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x522bf3
jmp 0x522ef1
test ebx, ebx
jl 0x522ef1
inc ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1d8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004365c8
mov esi, eax
mov edx, dword [ebp - 0x1e8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.004365c8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x1dc]
mov edi, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x522ee5
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xff00ff
je 0x522e34
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 2]
movzx edx, byte [esi + ebx*4 + 2]
sub eax, edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi*4 + 3]
imul edx
movzx edx, byte [esi + ebx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 1]
movzx edx, byte [esi + ebx*4 + 1]
sub eax, edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi*4 + 3]
imul edx
movzx edx, byte [esi + ebx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4]
movzx edx, byte [esi + ebx*4]
sub eax, edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi*4 + 3]
imul edx
movzx edx, byte [esi + ebx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
movzx edx, byte [esi + ebx*4 + 3]
cmp eax, edx
jge 0x522e17
movzx eax, byte [esi + ebx*4 + 3]
mov dword [ebp - 0x1b8], eax
jmp 0x522e25
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1b8]
mov byte [esi + ebx*4 + 3], al
jmp 0x522ed7
cmp byte [ebp + 0x14], 0
je 0x522ed7
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x1d8]
add edx, dword [ebp - 0x10]
cmp eax, edx
jle 0x522ed9
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x522ee5
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x1d8]
add eax, dword [ebp - 0x10]
test eax, eax
jl 0x522ee5
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x522ed9
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.00436458
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x1d8]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x1dc]
add edx, dword [ebp - 0xc]
call fcn.00431da4
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0x18]
mov byte [esi + ebx*4 + 2], al
movzx eax, byte [ebp - 0x17]
mov byte [esi + ebx*4 + 1], al
movzx eax, byte [ebp - 0x16]
mov byte [esi + ebx*4], al
inc ebx
inc edi
inc dword [ebp - 0xc]
dec dword [ebp - 0x40]
jne 0x522d63
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x522d1a
cmp byte [ebp + 8], 0
je 0x52312a
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x522f0a
adc eax, 0
dec eax
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x1d0]
dec eax
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1bc]
cmp eax, dword [ebp - 0x1c0]
jge 0x522f42
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c4], eax
jmp 0x522f4e
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], eax
mov ebx, dword [ebp - 0x1c4]
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x522f63
adc eax, 0
push eax
mov eax, 0xff
pop edx
mov ecx, edx
cdq
idiv ecx
mov byte [ebp - 0x15], al
mov byte [ebp - 0x18], 0xff
test ebx, ebx
jle 0x52312a
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x1d0]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004365c8
mov esi, eax
mov edx, dword [ebp - 0x1e0]
sub edx, dword [ebp - 0x10]
dec edx
mov eax, dword [ebp + 0x1c]
call fcn.004365c8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x1dc]
mov edi, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x523117
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xff00ff
je 0x52310c
cmp dword [ebp + 0xc], 0
jne 0x52303e
movzx eax, byte [ebp - 0x19]
mov ecx, 3
xor edx, edx
div ecx
movzx edx, byte [ebp - 0x18]
imul edx
mov ecx, 0xff
xor edx, edx
div ecx
test eax, eax
jle 0x52302b
movzx eax, byte [ebp - 0x19]
mov ecx, 3
xor edx, edx
div ecx
movzx edx, byte [ebp - 0x18]
imul edx
mov ecx, 0xff
xor edx, edx
div ecx
mov dword [ebp - 0x1c8], eax
jmp 0x523033
xor eax, eax
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c8]
mov byte [ebp - 0x1e], al
jmp 0x5230a3
movzx eax, byte [ebp - 0x19]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x12c
cdq
idiv ecx
movzx edx, byte [ebp - 0x18]
imul edx
mov ecx, 0xff
cdq
idiv ecx
test eax, eax
jle 0x523092
movzx eax, byte [ebp - 0x19]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x12c
cdq
idiv ecx
movzx edx, byte [ebp - 0x18]
imul edx
mov ecx, 0xff
cdq
idiv ecx
mov dword [ebp - 0x1cc], eax
jmp 0x52309a
xor eax, eax
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1cc]
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 0x1a]
movzx edx, byte [esi + ebx*4 + 2]
sub eax, edx
movzx edx, byte [ebp - 0x1e]
imul edx
movzx edx, byte [esi + ebx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
movzx eax, byte [ebp - 0x1b]
movzx edx, byte [esi + ebx*4 + 1]
sub eax, edx
movzx edx, byte [ebp - 0x1e]
imul edx
movzx edx, byte [esi + ebx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
movzx eax, byte [ebp - 0x1c]
movzx edx, byte [esi + ebx*4]
sub eax, edx
movzx edx, byte [ebp - 0x1e]
imul edx
movzx edx, byte [esi + ebx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4], al
inc ebx
inc edi
dec dword [ebp - 0x40]
jne 0x522fcb
movzx eax, byte [ebp - 0x15]
sub byte [ebp - 0x18], al
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x522f88
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18