Function at 0x4e5e70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x58c454
push 0x58c438
push 0
push edi
mov dword [ebp - 4], ecx
call fcn.0050caf3
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4e6972
mov eax, dword [esi + 0x20]
test eax, eax
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
jne 0x4e640a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, dword [ebx + 4]
imul ecx, dword [edi + 4]
add ecx, dword [ebx]
mov edi, dword [ebp - 4]
lea eax, [eax + ecx*4]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x60]
mov ecx, dword [edi + 4]
imul ecx, dword [ebp + 0x10]
add ecx, dword [ebp + 0xc]
cmp byte [edi + 0x2a], 0
mov edi, dword [ebp + 0x18]
lea eax, [eax + ecx*4]
mov dword [ebp - 8], eax
jne 0x4e6150
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29], 0
jne 0x4e6150
push 0x5942a0
push edi
call fcn.004be4ee
test al, al
pop ecx
pop ecx
jne 0x4e6150
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov edi, dword [ebx + 4]
mov ecx, dword [ebp + 8]
imul edi, dword [ecx + 4]
add edi, dword [ebx]
and dword [ebp - 0x20], 0
add edi, eax
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0x1c], edi
jle 0x4e6969
mov esi, 0xff
mov ecx, 0xff00
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0x18], eax
mov eax, dword [ebx + 8]
test eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], eax
jle 0x4e6119
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
mov byte [ebp + 0x13], al
movzx eax, al
cmp eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
jle 0x4e5f7b
mov al, byte [ebp - 0x10]
mov byte [ebp + 0x13], al
shr edx, 0x18
mov eax, 0x100
sub eax, edx
cmp eax, 1
mov dword [ebp - 0x2c], eax
jne 0x4e5fb8
movzx eax, byte [ebp + 0x13]
test eax, eax
mov dword [ebp + 0x10], eax
jle 0x4e6109
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax]
add dword [ebp + 0xc], 4
add dword [ebp + 0x18], 4
dec dword [ebp - 0x14]
mov dword [edx], eax
jne 0x4e5f9f
jmp 0x4e5fd1
mov edx, 0x100
cmp eax, edx
jne 0x4e5fd9
movzx eax, byte [ebp + 0x13]
mov dword [ebp + 0x10], eax
shl eax, 2
add dword [ebp + 0xc], eax
add dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x10]
jmp 0x4e6109
mov edi, edx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov ebx, edx
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x14]
and dx, si
sub edi, eax
and bx, si
add dword [ebp + 0x18], 4
imul edx, edi
imul ebx, eax
shr edx, 8
shr ebx, 8
add ebx, edx
mov edx, dword [ebp - 0x24]
and edx, 0xff0000
imul edx, eax
mov eax, dword [ebp - 0x14]
and eax, 0xff0000
imul eax, edi
shr eax, 8
shr edx, 8
add edx, eax
mov eax, dword [ebp - 0x24]
and edx, 0xffff0000
and ebx, esi
or ebx, edx
mov edx, dword [ebp - 0x14]
and eax, ecx
imul eax, dword [ebp - 0x2c]
and edx, ecx
imul edx, edi
shr eax, 8
shr edx, 8
add eax, edx
and eax, ecx
or ebx, eax
mov eax, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
or ebx, 0xff000000
mov dword [eax], ebx
movzx eax, byte [ebp + 0x13]
cmp eax, 1
mov dword [ebp + 0x10], eax
jle 0x4e6103
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
mov dword [ebp - 0x14], edx
mov edi, edx
and dx, si
mov dword [ebp - 0x24], ebx
and bx, si
shr edi, 0x18
mov eax, 0x100
sub eax, edi
mov dword [ebp - 0x2c], eax
imul edx, edi
imul ebx, eax
shr edx, 8
shr ebx, 8
add ebx, edx
mov edx, dword [ebp - 0x24]
and edx, 0xff0000
imul edx, eax
mov eax, dword [ebp - 0x14]
and eax, 0xff0000
imul eax, edi
shr eax, 8
shr edx, 8
add edx, eax
mov eax, dword [ebp - 0x24]
add dword [ebp + 0x18], 4
and edx, 0xffff0000
and ebx, esi
or ebx, edx
mov edx, dword [ebp - 0x14]
and eax, ecx
imul eax, dword [ebp - 0x2c]
and edx, ecx
imul edx, edi
shr eax, 8
shr edx, 8
add eax, edx
and eax, ecx
or ebx, eax
mov eax, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
or ebx, 0xff000000
dec dword [ebp - 0x28]
mov dword [eax], ebx
jne 0x4e606b
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp + 0x14]
sub dword [ebp - 0x10], eax
add dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], 0
jg 0x4e5f5d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add edi, eax
inc dword [ebp - 0x20]
lea edx, [edx + eax*4]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], edi
jl 0x4e5f40
jmp 0x4e6969
push 0x5942a0
push edi
call fcn.004be4c1
and dword [ebp - 0x18], 0
test al, al
pop ecx
pop ecx
je 0x4e629e
cmp dword [ebx + 0xc], 0
jle 0x4e6969
mov esi, 0xff
mov edi, 0xff0000
mov ecx, 0xff00
mov eax, dword [ebp - 8]
and dword [ebp - 0x1c], 0
cmp dword [ebx + 8], 0
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
jle 0x4e626c
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
add dword [ebp + 0xc], 4
mov eax, dword [eax]
mov dword [ebp - 0x20], edx
shr edx, 0x18
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x28], edx
je 0x4e6259
mov ebx, eax
shr ebx, 0x18
mov eax, esi
sub eax, ebx
imul eax, edx
mov dword [ebp - 0x2c], ebx
cdq
mov ebx, esi
idiv ebx
mov ebx, eax
mov eax, dword [ebp - 0x28]
add ebx, dword [ebp - 0x2c]
imul eax, eax, 0xff
cdq
idiv ebx
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp + 0x18]
and ebx, edi
mov edx, 0x100
sub edx, eax
imul ebx, edx
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x20]
and edx, edi
imul edx, eax
shr edx, 8
shr ebx, 8
add ebx, edx
mov edx, dword [ebp + 0x18]
and ebx, edi
mov edi, dword [ebp - 0x20]
and dx, si
and di, si
imul edx, dword [ebp - 0x28]
imul edi, eax
shr edx, 8
shr edi, 8
add edx, edi
mov edi, dword [ebp - 0x20]
and edx, esi
or ebx, edx
mov edx, dword [ebp + 0x18]
and edx, ecx
imul edx, dword [ebp - 0x28]
and edi, ecx
imul edi, eax
mov eax, dword [ebp - 0x2c]
shr edx, 8
shr edi, 8
add edx, edi
and edx, ecx
or ebx, edx
shl eax, 0x18
or ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov ebx, dword [ebp + 0x14]
mov edi, 0xff0000
add dword [ebp + 0x10], 4
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx + 8]
jl 0x4e619c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
inc dword [ebp - 0x18]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea eax, [edx + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebx + 0xc]
jl 0x4e6182
jmp 0x4e6969
cmp dword [ebx + 0xc], 0
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], eax
jle 0x4e6969
mov esi, 0xff
mov edi, 0xff0000
mov ecx, 0xff00
mov eax, dword [ebp - 8]
and dword [ebp - 0x1c], 0
cmp dword [ebx + 8], 0
mov edx, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
jle 0x4e63d8
jmp 0x4e62ea
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
add edx, 4
shr eax, 0x18
imul eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov dword [ebp + 0x18], edx
xor edx, edx
mov ebx, esi
div ebx
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4e63c2
mov edx, dword [ebp + 0x18]
shr edx, 0x18
mov dword [ebp - 0x24], edx
mov eax, esi
sub eax, edx
imul eax, dword [ebp + 0xc]
cdq
idiv ebx
mov ebx, eax
mov eax, dword [ebp + 0xc]
add ebx, dword [ebp - 0x24]
imul eax, eax, 0xff
cdq
idiv ebx
mov edx, dword [ebp - 0x20]
and edx, edi
mov dword [ebp - 0x24], ebx
mov ebx, 0x100
imul edx, eax
sub ebx, eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
and eax, edi
imul eax, ebx
shr edx, 8
imul edx, dword [ebp - 0x14]
shr eax, 8
shr edx, 8
add edx, eax
movzx eax, byte [ebp - 0x20]
imul eax, dword [ebp + 0xc]
imul eax, dword [ebp - 0x10]
and edx, edi
mov edi, dword [ebp + 0x18]
and di, si
shr eax, 0x10
imul edi, ebx
shr edi, 8
add eax, edi
and eax, esi
or edx, eax
mov eax, dword [ebp - 0x20]
and eax, ecx
imul eax, dword [ebp + 0xc]
imul eax, dword [ebp - 0x30]
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 0x18]
and edx, ecx
imul edx, ebx
shr eax, 0x10
shr edx, 8
add eax, edx
mov edx, dword [ebp + 0xc]
and eax, ecx
or edx, eax
mov eax, dword [ebp - 0x24]
shl eax, 0x18
or edx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov edi, 0xff0000
add dword [ebp + 0x10], 4
inc dword [ebp - 0x1c]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx + 8]
jl 0x4e62e7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
inc dword [ebp - 0x18]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea eax, [edx + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebx + 0xc]
jl 0x4e62ce
jmp 0x4e6969
mov eax, dword [ebx + 4]
mov ecx, edi
imul eax, dword [ecx + 4]
add eax, dword [esi + 0x24]
mov edi, dword [ebp - 4]
add eax, dword [ebx]
mov ecx, edi
mov dword [ebp - 8], eax
mov eax, dword [edi]
call dword [eax + 0x60]
mov ecx, dword [edi + 4]
imul ecx, dword [ebp + 0x10]
add ecx, dword [ebp + 0xc]
cmp byte [edi + 0x2a], 0
mov edi, dword [ebp + 0x18]
lea eax, [eax + ecx*4]
mov dword [ebp - 0xc], eax
jne 0x4e66b5
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29], 0
jne 0x4e66b5
push 0x5942a0
push edi
call fcn.004be4ee
test al, al
pop ecx
pop ecx
jne 0x4e66b5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov edx, dword [ebx + 4]
mov ecx, dword [ebp + 8]
imul edx, dword [ecx + 4]
add edx, dword [ebx]
and dword [ebp - 0x18], 0
add edx, eax
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0x2c], edx
jle 0x4e6969
mov esi, 0xff
mov ecx, 0xff00
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 8]
test eax, eax
mov dword [ebp + 0x18], edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], eax
jle 0x4e6684
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + eax*4]
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
mov byte [ebp + 0x13], al
movzx eax, al
cmp eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
jle 0x4e64d6
mov al, byte [ebp - 0x10]
mov byte [ebp + 0x13], al
shr edx, 0x18
mov eax, 0x100
sub eax, edx
cmp eax, 1
mov dword [ebp - 0x30], eax
jne 0x4e651e
movzx eax, byte [ebp + 0x13]
test eax, eax
mov dword [ebp + 0x10], eax
jle 0x4e6671
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4]
mov dword [edi], eax
add edi, 4
inc dword [ebp + 0xc]
dec dword [ebp + 0x18]
jne 0x4e64fa
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x18], edi
jmp 0x4e6671
mov edx, 0x100
cmp eax, edx
jne 0x4e6539
movzx eax, byte [ebp + 0x13]
add dword [ebp + 0xc], eax
lea edi, [edi + eax*4]
mov dword [ebp + 0x18], edi
jmp 0x4e6671
mov edi, dword [edi]
mov ebx, edx
mov edx, edi
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x20]
and dx, si
and di, si
sub ebx, eax
inc dword [ebp + 0xc]
imul edx, eax
imul edi, ebx
shr edx, 8
shr edi, 8
add edx, edi
mov edi, dword [ebp - 0x28]
and edi, 0xff0000
imul edi, eax
mov eax, dword [ebp - 0x20]
and eax, 0xff0000
imul eax, ebx
shr eax, 8
and edx, esi
shr edi, 8
add edi, eax
mov eax, dword [ebp - 0x28]
and eax, ecx
imul eax, dword [ebp - 0x30]
and edi, 0xffff0000
or edx, edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x20]
and edx, ecx
imul edx, ebx
shr edx, 8
shr eax, 8
add eax, edx
mov edx, dword [ebp - 0x30]
and eax, ecx
or edx, eax
movzx eax, byte [ebp + 0x13]
or edx, 0xff000000
mov dword [edi], edx
add edi, 4
cmp eax, 1
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x10], eax
jle 0x4e666e
dec eax
mov dword [ebp - 0x20], eax
mov edi, dword [edi]
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x24], edx
mov ebx, edx
mov dword [ebp - 0x28], edi
and dx, si
and di, si
shr ebx, 0x18
mov eax, 0x100
sub eax, ebx
mov dword [ebp - 0x30], eax
inc dword [ebp + 0xc]
imul edx, ebx
imul edi, eax
shr edx, 8
shr edi, 8
add edi, edx
mov edx, dword [ebp - 0x28]
and edx, 0xff0000
imul edx, eax
mov eax, dword [ebp - 0x24]
and eax, 0xff0000
imul eax, ebx
shr eax, 8
shr edx, 8
add edx, eax
mov eax, dword [ebp - 0x28]
and edi, esi
and edx, 0xffff0000
or edi, edx
mov edx, dword [ebp - 0x24]
and eax, ecx
imul eax, dword [ebp - 0x30]
and edx, ecx
imul edx, ebx
shr eax, 8
shr edx, 8
add eax, edx
and eax, ecx
or edi, eax
or edi, 0xff000000
mov eax, edi
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
add edi, 4
dec dword [ebp - 0x20]
mov dword [ebp + 0x18], edi
jne 0x4e65cf
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
sub dword [ebp - 0x10], eax
add dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], 0
jg 0x4e64b1
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edi, dword [ebp - 0xc]
lea eax, [edi + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add dword [ebp - 8], eax
add edx, eax
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebx + 0xc]
mov dword [ebp - 0x2c], edx
jl 0x4e6494
jmp 0x4e6969
push 0x5942a0
push edi
call fcn.004be4c1
and dword [ebp - 0x18], 0
test al, al
pop ecx
pop ecx
je 0x4e6803
cmp dword [ebx + 0xc], 0
jle 0x4e6969
mov esi, 0xff
mov edi, 0xff0000
mov ecx, 0xff00
mov eax, dword [ebp - 0xc]
and dword [ebp - 0x1c], 0
cmp dword [ebx + 8], 0
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
jle 0x4e67d7
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + eax*4]
mov eax, dword [ebp + 0x10]
inc dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x20], edx
shr edx, 0x18
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x2c], edx
je 0x4e67c4
mov ebx, eax
shr ebx, 0x18
mov eax, esi
sub eax, ebx
imul eax, edx
mov dword [ebp - 0x30], ebx
cdq
mov ebx, esi
idiv ebx
mov ebx, eax
mov eax, dword [ebp - 0x2c]
add ebx, dword [ebp - 0x30]
imul eax, eax, 0xff
cdq
idiv ebx
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp + 0x18]
and ebx, edi
mov edx, 0x100
sub edx, eax
imul ebx, edx
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x20]
and edx, edi
imul edx, eax
shr edx, 8
shr ebx, 8
add ebx, edx
mov edx, dword [ebp + 0x18]
and ebx, edi
mov edi, dword [ebp - 0x20]
and dx, si
and di, si
imul edx, dword [ebp - 0x2c]
imul edi, eax
shr edx, 8
shr edi, 8
add edx, edi
mov edi, dword [ebp - 0x20]
and edx, esi
or ebx, edx
mov edx, dword [ebp + 0x18]
and edx, ecx
imul edx, dword [ebp - 0x2c]
and edi, ecx
imul edi, eax
mov eax, dword [ebp - 0x30]
shr edx, 8
shr edi, 8
add edx, edi
and edx, ecx
or ebx, edx
shl eax, 0x18
or ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov ebx, dword [ebp + 0x14]
mov edi, 0xff0000
add dword [ebp + 0x10], 4
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx + 8]
jl 0x4e6701
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add dword [ebp - 8], eax
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebx + 0xc]
jl 0x4e66e7
jmp 0x4e6969
cmp dword [ebx + 0xc], 0
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], eax
jle 0x4e6969
mov esi, 0xff
mov edi, 0xff0000
mov ecx, 0xff00
mov eax, dword [ebp - 0xc]
and dword [ebp - 0x1c], 0
cmp dword [ebx + 8], 0
mov edx, dword [ebp - 8]
mov dword [ebp + 0x10], eax
jle 0x4e6942
jmp 0x4e684f
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + eax*4]
mov dword [ebp - 0x20], eax
inc edx
shr eax, 0x18
imul eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov dword [ebp + 0x18], edx
xor edx, edx
mov ebx, esi
div ebx
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4e692c
mov edx, dword [ebp + 0x18]
shr edx, 0x18
mov dword [ebp - 0x28], edx
mov eax, esi
sub eax, edx
imul eax, dword [ebp + 0xc]
cdq
idiv ebx
mov ebx, eax
mov eax, dword [ebp + 0xc]
add ebx, dword [ebp - 0x28]
imul eax, eax, 0xff
cdq
idiv ebx
mov edx, dword [ebp - 0x20]
and edx, edi
mov dword [ebp - 0x28], ebx
mov ebx, 0x100
imul edx, eax
sub ebx, eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
and eax, edi
imul eax, ebx
shr edx, 8
imul edx, dword [ebp - 0x24]
shr eax, 8
shr edx, 8
add edx, eax
movzx eax, byte [ebp - 0x20]
imul eax, dword [ebp + 0xc]
imul eax, dword [ebp - 0x10]
and edx, edi
mov edi, dword [ebp + 0x18]
and di, si
shr eax, 0x10
imul edi, ebx
shr edi, 8
add eax, edi
and eax, esi
or edx, eax
mov eax, dword [ebp - 0x20]
and eax, ecx
imul eax, dword [ebp + 0xc]
imul eax, dword [ebp - 0x34]
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 0x18]
and edx, ecx
imul edx, ebx
shr eax, 0x10
shr edx, 8
add eax, edx
mov edx, dword [ebp + 0xc]
and eax, ecx
or edx, eax
mov eax, dword [ebp - 0x28]
shl eax, 0x18
or edx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov edi, 0xff0000
add dword [ebp + 0x10], 4
inc dword [ebp - 0x1c]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx + 8]
jl 0x4e684c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add dword [ebp - 8], eax
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebx + 0xc]
jl 0x4e6833
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x48]
pop ebx
pop edi
pop esi
leave
ret 0x14