Function at 0x51f1c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov eax, dword [esi + 8]
cmp eax, 3
ja case.0x51f1df.0
jmp dword [eax*4 + 0x51fef4]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
cmp eax, 3
ja case.0x51f1f5.0
jmp dword [eax*4 + 0x51ff04]
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x5c], esi
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], edi
je 0x51f2cc
mov ecx, dword [edi + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [edx + ecx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [edx + ecx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [ebx + 0x10]
shl ecx, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
add ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
cmp eax, ecx
je 0x51feeb
nop dword [eax + eax]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebx
mov dword [ebp - 0x18], ecx
cmp ebx, ecx
jge 0x51f2ba
mov ecx, ebx
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0xc]
imul eax, ebx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
add eax, dword [esi]
mov dword [ebp - 0x48], eax
mov eax, ecx
cdq
lea ecx, [ebp - 0x5c]
idiv dword [edi + 0x18]
imul edx, dword [edi + 0xc]
add edx, dword [edi]
mov dword [ebp - 0x44], edx
call fcn.005357e0
mov ecx, dword [ebp - 0xc]
inc ebx
inc ecx
mov dword [ebp - 0xc], ecx
cmp ebx, dword [ebp - 0x18]
jl 0x51f282
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x14]
jne 0x51f260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
shl ecx, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
add ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x51feeb
nop
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
cmp ebx, ecx
jge 0x51f347
mov ecx, ebx
sub ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0xc]
push dword [ebp - 0x24]
imul eax, ebx
push edx
add eax, dword [esi]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0xc]
imul eax, ecx
lea ecx, [ebp - 0x5c]
add eax, dword [edi]
mov dword [ebp - 0x44], eax
call fcn.00535f30
mov ecx, dword [ebp - 0xc]
inc ebx
mov edx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ebx, dword [ebp - 0x20]
jl 0x51f312
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x18]
jne 0x51f2f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x5c], esi
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], edi
je 0x51f41c
mov ecx, dword [edi + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [edx + ecx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [edx + ecx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [ebx + 0x10]
shl ecx, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
add ecx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x51feeb
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebx
mov dword [ebp - 0x1c], ecx
cmp ebx, ecx
jge 0x51f40a
nop
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x5c]
imul eax, ebx
push dword [ebp - 0x24]
push dword [ebp - 0x20]
add eax, dword [esi]
mov dword [ebp - 0x48], eax
mov eax, ebx
sub eax, dword [ebp - 0x4c]
cdq
idiv dword [edi + 0x18]
imul edx, dword [edi + 0xc]
add edx, dword [edi]
mov dword [ebp - 0x44], edx
call fcn.005354c0
mov edi, dword [ebp - 0x58]
inc ebx
mov esi, dword [ebp - 0x5c]
cmp ebx, dword [ebp - 0x1c]
jl 0x51f3d0
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x18]
jne 0x51f3b5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
shl ecx, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
add ecx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x51feeb
nop
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
cmp ebx, ecx
jge 0x51f499
nop word [eax + eax]
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x24]
imul eax, ebx
push edx
add eax, dword [esi]
mov dword [ebp - 0x48], eax
mov eax, ebx
sub eax, dword [ebp - 0x4c]
imul eax, dword [edi + 0xc]
add eax, dword [edi]
mov dword [ebp - 0x44], eax
call fcn.00535130
mov edi, dword [ebp - 0x58]
inc ebx
mov esi, dword [ebp - 0x5c]
cmp ebx, dword [ebp - 0x20]
jge 0x51f496
mov edx, dword [ebp - 0x1c]
jmp 0x51f460
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x18]
jne 0x51f440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x5c], esi
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], edi
je 0x51f57c
mov ecx, dword [edi + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [ecx + edx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [ecx + edx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [ebx + 0x10]
shl ecx, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
add ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
cmp eax, ecx
je 0x51feeb
nop word [eax + eax]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebx
mov dword [ebp - 0x18], ecx
cmp ebx, ecx
jge 0x51f56a
mov ecx, ebx
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0xc]
imul eax, ebx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
add eax, dword [esi]
mov dword [ebp - 0x48], eax
mov eax, ecx
cdq
lea ecx, [ebp - 0x5c]
idiv dword [edi + 0x18]
imul edx, dword [edi + 0xc]
add edx, dword [edi]
mov dword [ebp - 0x44], edx
call fcn.00534d50
mov ecx, dword [ebp - 0xc]
inc ebx
inc ecx
mov dword [ebp - 0xc], ecx
cmp ebx, dword [ebp - 0x18]
jl 0x51f532
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x14]
jne 0x51f510
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
shl ecx, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
add ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x51feeb
nop
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
cmp ebx, ecx
jge 0x51f5f7
mov ecx, ebx
sub ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0xc]
push dword [ebp - 0x24]
imul eax, ebx
push edx
add eax, dword [esi]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0xc]
imul eax, ecx
lea ecx, [ebp - 0x5c]
add eax, dword [edi]
mov dword [ebp - 0x44], eax
call fcn.00534910
mov ecx, dword [ebp - 0xc]
inc ebx
mov edx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ebx, dword [ebp - 0x20]
jl 0x51f5c2
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x18]
jne 0x51f5a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
cmp eax, 3
ja case.0x51f618.0
jmp dword [eax*4 + 0x51ff14]
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x5c], esi
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], edi
je 0x51f6ec
mov ecx, dword [edi + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [ecx + edx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [ecx + edx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [ebx + 0x10]
shl ecx, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
add ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
cmp eax, ecx
je 0x51feeb
nop
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebx
mov dword [ebp - 0x18], ecx
cmp ebx, ecx
jge 0x51f6da
mov ecx, ebx
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0xc]
imul eax, ebx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
add eax, dword [esi]
mov dword [ebp - 0x48], eax
mov eax, ecx
cdq
lea ecx, [ebp - 0x5c]
idiv dword [edi + 0x18]
imul edx, dword [edi + 0xc]
add edx, dword [edi]
mov dword [ebp - 0x44], edx
call fcn.005345a0
mov ecx, dword [ebp - 0xc]
inc ebx
inc ecx
mov dword [ebp - 0xc], ecx
cmp ebx, dword [ebp - 0x18]
jl 0x51f6a2
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x14]
jne 0x51f680
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
shl ecx, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
add ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x51feeb
nop
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
cmp ebx, ecx
jge 0x51f767
mov ecx, ebx
sub ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0xc]
push dword [ebp - 0x24]
imul eax, ebx
push edx
add eax, dword [esi]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0xc]
imul eax, ecx
lea ecx, [ebp - 0x5c]
add eax, dword [edi]
mov dword [ebp - 0x44], eax
call fcn.005341d0
mov ecx, dword [ebp - 0xc]
inc ebx
mov edx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ebx, dword [ebp - 0x20]
jl 0x51f732
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x18]
jne 0x51f710
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x5c], esi
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], edi
je 0x51f7ca
mov ecx, dword [edi + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [ecx + edx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [ecx + edx]
cmovns eax, edx
sub eax, ecx
mov ecx, ebx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0052dc30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
shl ecx, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
add ecx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x51feeb
nop dword [eax]
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
cmp ebx, ecx
jge 0x51f849
nop word [eax + eax]
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x24]
imul eax, ebx
push edx
add eax, dword [esi]
mov dword [ebp - 0x48], eax
mov eax, ebx
sub eax, dword [ebp - 0x4c]
imul eax, dword [edi + 0xc]
add eax, dword [edi]
mov dword [ebp - 0x44], eax
call fcn.00533ed0
mov edi, dword [ebp - 0x58]
inc ebx
mov esi, dword [ebp - 0x5c]
cmp ebx, dword [ebp - 0x20]
jge 0x51f846
mov edx, dword [ebp - 0x1c]
jmp 0x51f810
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x18]
jne 0x51f7f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x5c], esi
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], edi
je 0x51f92c
mov ecx, dword [edi + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [ecx + edx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [ecx + edx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [ebx + 0x10]
shl ecx, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
add ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
cmp eax, ecx
je 0x51feeb
nop word [eax + eax]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebx
mov dword [ebp - 0x18], ecx
cmp ebx, ecx
jge 0x51f91a
mov ecx, ebx
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0xc]
imul eax, ebx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
add eax, dword [esi]
mov dword [ebp - 0x48], eax
mov eax, ecx
cdq
lea ecx, [ebp - 0x5c]
idiv dword [edi + 0x18]
imul edx, dword [edi + 0xc]
add edx, dword [edi]
mov dword [ebp - 0x44], edx
call fcn.00533bb0
mov ecx, dword [ebp - 0xc]
inc ebx
inc ecx
mov dword [ebp - 0xc], ecx
cmp ebx, dword [ebp - 0x18]
jl 0x51f8e2
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x14]
jne 0x51f8c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
shl ecx, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
add ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x51feeb
nop
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
cmp ebx, ecx
jge 0x51f9a7
mov ecx, ebx
sub ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0xc]
push dword [ebp - 0x24]
imul eax, ebx
push edx
add eax, dword [esi]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0xc]
imul eax, ecx
lea ecx, [ebp - 0x5c]
add eax, dword [edi]
mov dword [ebp - 0x44], eax
call fcn.00533820
mov ecx, dword [ebp - 0xc]
inc ebx
mov edx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ebx, dword [ebp - 0x20]
jl 0x51f972
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x18]
jne 0x51f950
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
cmp eax, 3
ja case.0x51f9c8.0
jmp dword [eax*4 + 0x51ff24]
mov eax, dword [ebp + 0xc]
inc eax
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x10], eax
je 0x51fb4f
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp + 0x10]
cdq
idiv ecx
test edx, edx
lea eax, [ecx + edx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [ecx + edx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 8]
shl eax, 4
add eax, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x3c], eax
cmp edx, eax
je 0x51feeb
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov edi, dword [edx]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 4]
add ecx, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x38], ecx
cmp eax, ecx
jge 0x51fb39
mov ecx, edi
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 0x34], ecx
mov ecx, eax
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
nop dword [eax]
mov eax, ecx
mov edi, dword [esi + 0xc]
cdq
idiv dword [ebx + 0x18]
mov ecx, dword [esi + 0x10]
imul edi, dword [ebp - 0xc]
mov eax, edx
imul eax, dword [ebx + 0xc]
mov dword [ebp - 0x18], ecx
add eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
imul eax, ecx
mov ecx, dword [ebp - 0x34]
add edi, eax
add edi, dword [esi]
cmp dword [ebp - 0x10], 0xfe
mov esi, dword [ebp - 4]
jge 0x51fae3
nop dword [eax]
mov eax, ecx
dec esi
cdq
inc ecx
idiv dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
imul eax, edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x14]
movzx edx, byte [eax + ecx + 3]
mov ecx, 0x100
mov eax, dword [ebp - 0x10]
inc eax
imul edx, eax
movzx eax, byte [edi]
shr edx, 8
sub ecx, edx
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [edi], cl
add edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
test esi, esi
jg 0x51faa0
jmp 0x51fb1c
mov eax, ecx
dec esi
cdq
inc ecx
idiv dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x14]
imul eax, edx
mov dl, byte [eax + ecx + 3]
mov ecx, 0x100
movzx eax, dl
sub ecx, eax
movzx eax, byte [edi]
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [edi], cl
add edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
test esi, esi
jg 0x51fae3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
inc eax
mov esi, dword [ebp - 8]
inc ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], ecx
cmp eax, dword [ebp - 0x38]
jl 0x51fa60
mov edx, dword [ebp - 0x20]
add edx, 0x10
mov dword [ebp - 0x20], edx
cmp edx, dword [ebp - 0x3c]
jne 0x51fa28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], ebx
call fcn.0052de10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
inc eax
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x18], eax
je 0x51fc42
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0x10]
shl ecx, 4
add ecx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], ecx
cmp eax, ecx
je 0x51feeb
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax]
add edx, ecx
mov edi, dword [eax + 8]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], edx
cmp ecx, edx
jge 0x51fc2c
nop dword [eax]
mov eax, dword [esi + 0xc]
mov edx, edi
mov edi, dword [esi + 0x10]
imul eax, ecx
mov ecx, ebx
imul ecx, edi
add eax, ecx
mov ecx, dword [ebp - 0x18]
add eax, dword [esi]
cmp ecx, 0xfe
jge 0x51fc10
inc ecx
imul ebx, ecx, 0xff
mov ecx, 0x100
shr ebx, 8
sub ecx, ebx
mov dword [ebp - 0x3c], ecx
movzx ecx, byte [eax]
dec edx
imul ecx, dword [ebp - 0x3c]
sar ecx, 8
add cl, bl
mov byte [eax], cl
add eax, edi
test edx, edx
jg 0x51fbf3
mov ebx, dword [ebp - 0x38]
jmp 0x51fc1a
mov byte [eax], 0xff
dec edx
add eax, edi
test edx, edx
jg 0x51fc10
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, dword [ebp - 0x34]
jl 0x51fbc0
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x2c]
jne 0x51fba0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 8]
shl eax, 4
add eax, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x30], eax
cmp edx, eax
je 0x51feeb
nop dword [eax + eax]
mov eax, dword [edx]
mov ecx, dword [edx + 0xc]
mov edi, dword [edx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 4]
add ecx, eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x34], ecx
cmp eax, ecx
jge 0x51fd47
mov ecx, dword [ebp - 0x20]
mov edx, eax
sub ecx, dword [ebp + 0x10]
sub edx, dword [ebp + 0x14]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
imul ecx, edx
mov edx, edi
mov edi, dword [esi + 0x10]
add eax, ecx
mov ecx, dword [esi + 0xc]
imul ecx, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
imul eax, edi
add ecx, eax
mov eax, dword [ebp - 0x18]
add ecx, dword [esi]
cmp eax, 0xfe
jge 0x51fcee
inc eax
mov dword [ebp - 0xc], 0x100
imul eax, eax, 0xff
shr eax, 8
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], eax
movzx eax, byte [ecx]
dec edx
imul eax, dword [ebp - 0xc]
sar eax, 8
add al, byte [ebp - 0x3c]
mov byte [ecx], al
add ecx, edi
test edx, edx
jg 0x51fcd6
jmp 0x51fd2a
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp - 4]
cmp edi, edx
jne 0x51fd20
cmp dword [ebx + 8], 1
jne 0x51fd20
cmp dword [esi + 8], 1
jne 0x51fd20
mov edi, eax
imul eax, edx
imul edx, dword [ebp - 0x38]
push eax
add edx, dword [ebp - 0x3c]
push edx
push ecx
call fcn.00d9a680
add esp, 0xc
jmp 0x51fd2d
mov byte [ecx], 0xff
dec eax
add ecx, edi
test eax, eax
jg 0x51fd20
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
inc eax
inc edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
cmp eax, dword [ebp - 0x34]
jl 0x51fc92
mov edx, dword [ebp - 0x14]
add edx, 0x10
mov dword [ebp - 0x14], edx
cmp edx, dword [ebp - 0x30]
jne 0x51fc60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
inc eax
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x20], eax
je 0x51fecd
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp + 0x10]
cdq
idiv ecx
test edx, edx
lea eax, [edx + ecx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
cdq
idiv ecx
test edx, edx
lea eax, [edx + ecx]
cmovns eax, edx
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0x10]
shl ecx, 4
add ecx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x40], ecx
cmp eax, ecx
je 0x51feeb
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 4]
add edx, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x28], edx
cmp ecx, edx
jge 0x51feb7
mov eax, edi
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov eax, ecx
sub eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
cdq
idiv dword [ebx + 0x18]
mov edi, dword [esi + 0xc]
mov eax, edx
imul edi, ecx
imul eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x2c]
add eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
imul eax, dword [ebp - 0x30]
add edi, eax
add edi, dword [esi]
cmp dword [ebp - 0x20], 0xfe
mov esi, dword [ebp - 0x1c]
jge 0x51fe62
nop
mov eax, ecx
dec esi
cdq
inc ecx
idiv dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
imul eax, edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x18]
movzx edx, byte [eax + ecx]
mov ecx, 0x100
mov eax, dword [ebp - 0x20]
inc eax
imul edx, eax
movzx eax, byte [edi]
shr edx, 8
sub ecx, edx
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [edi], cl
add edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
test esi, esi
jg 0x51fe20
jmp 0x51fe9a
mov eax, ecx
dec esi
cdq
inc ecx
idiv dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x18]
imul eax, edx
mov dl, byte [eax + ecx]
mov ecx, 0x100
movzx eax, dl
sub ecx, eax
movzx eax, byte [edi]
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [edi], cl
add edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
test esi, esi
jg 0x51fe62
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
inc ecx
mov esi, dword [ebp - 8]
inc eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
cmp ecx, dword [ebp - 0x28]
jl 0x51fde7
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x40]
jne 0x51fdb6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], ebx
call fcn.0052df80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret