Function at 0x4d2d2e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
push 0x58c454
mov ebx, 0x58c438
push ebx
push 0
push dword [ebp + 8]
mov esi, ecx
call fcn.0050caf3
push 0
push 0x58c4d0
push ebx
push 0
push dword [ebp + 8]
mov edi, eax
call fcn.0050caf3
add esp, 0x28
test edi, edi
mov dword [ebp - 0x40], eax
je 0x4d3b5b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
cmp byte [edi + 0x2b], 0
mov ebx, dword [ebp + 0x18]
je 0x4d30aa
push 0x5942a0
push ebx
call fcn.004be4c1
test al, al
pop ecx
pop ecx
je 0x4d30aa
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [ebp + 0x18], eax
jne 0x4d2f2a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x60]
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
test al, al
je 0x4d3b5b
mov eax, dword [esi + 0x50]
imul eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x64]
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp + 8]
sar eax, 2
add eax, dword [ebp + 0xc]
and dword [ebp - 0x18], 0
lea edi, [ecx + eax*4]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 4]
imul eax, dword [edx + 4]
add eax, dword [ecx]
mov edx, dword [esi + 0x9c]
lea ebx, [ebx + eax*4]
mov eax, dword [esi + 0x98]
mov dword [ebp + 0x18], eax
shr eax, 1
mov dword [ebp - 0x3c], eax
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0xa0]
shr eax, 1
mov dword [ebp - 0x40], eax
mov eax, edx
shr eax, 1
cmp dword [ecx + 0xc], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x34], eax
jle 0x4d3b51
and dword [ebp - 0x1c], 0
cmp dword [ecx + 8], 0
mov eax, edi
mov dword [ebp - 0x24], eax
jle 0x4d2ef8
mov dword [ebp + 0xc], ebx
sub dword [ebp + 0xc], edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax]
mov eax, dword [eax]
mov dword [ebp - 0x2c], edx
mov ecx, edx
shr ecx, 0x18
movzx edx, dh
imul edx, ecx
shr edx, 8
imul edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x40]
mov ebx, eax
and ebx, dword [ebp + 0x10]
mov edi, 0x100
sub edi, ecx
imul ebx, edi
add ebx, edx
mov edx, dword [ebp - 0x2c]
shr edx, 0x10
and edx, 0xff
imul edx, ecx
mov dword [ebp - 0x38], ecx
mov ecx, eax
and ecx, dword [ebp + 0x18]
shr edx, 8
imul edx, dword [ebp + 0x18]
imul ecx, edi
add edx, dword [ebp - 0x3c]
and eax, dword [ebp - 0x20]
add ecx, edx
shr ecx, 8
imul eax, edi
and ecx, dword [ebp + 0x18]
shr ebx, 8
and ebx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edi
add ebx, ecx
movzx ecx, byte [ebp - 0x2c]
imul ecx, dword [ebp - 0x38]
shr ecx, 8
imul ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x34]
add eax, ecx
mov ecx, dword [ebp + 0x14]
shr eax, 8
and eax, dword [ebp - 0x20]
add ebx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax], ebx
add eax, 4
inc dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx + 8]
mov dword [ebp - 0x24], eax
jl 0x4d2e4b
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 0x50]
cdq
and edx, 3
add eax, edx
sar eax, 2
inc dword [ebp - 0x18]
lea edi, [edi + eax*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ebx, [ebx + eax*4]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ecx + 0xc]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
jl 0x4d2e32
jmp 0x4d3b51
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x40], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
test al, al
je 0x4d3b5b
mov eax, dword [esi + 0x50]
imul eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x64]
mov ebx, dword [ebp + 0x14]
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 0x9c]
sar eax, 2
add eax, dword [ebp + 0xc]
and dword [ebp - 0x10], 0
lea edi, [ecx + eax*4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 4]
imul ecx, dword [eax + 4]
mov eax, dword [esi + 0x98]
add ecx, dword [ebx]
mov dword [ebp - 0x1c], eax
add ecx, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x3c], eax
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0xa0]
shr eax, 1
mov dword [ebp - 0x40], eax
mov eax, edx
shr eax, 1
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x34], eax
jle 0x4d3b51
and dword [ebp - 0x14], 0
cmp dword [ebx + 8], 0
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x20], ecx
jle 0x4d307b
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x2c], edx
mov ecx, edx
shr ecx, 0x18
movzx edx, dh
imul edx, ecx
shr edx, 8
imul edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x40]
mov ebx, eax
and ebx, dword [ebp + 0x10]
mov edi, 0x100
sub edi, ecx
imul ebx, edi
add ebx, edx
mov edx, dword [ebp - 0x2c]
shr edx, 0x10
and edx, 0xff
imul edx, ecx
mov dword [ebp - 0x38], ecx
mov ecx, eax
and ecx, dword [ebp - 0x1c]
shr edx, 8
imul edx, dword [ebp - 0x1c]
imul ecx, edi
add edx, dword [ebp - 0x3c]
and eax, dword [ebp - 0x18]
add ecx, edx
shr ecx, 8
imul eax, edi
and ecx, dword [ebp - 0x1c]
shr ebx, 8
and ebx, dword [ebp + 0x10]
inc dword [ebp - 0x20]
add ebx, ecx
movzx ecx, byte [ebp - 0x2c]
imul ecx, dword [ebp - 0x38]
shr ecx, 8
imul ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edi
add eax, ecx
shr eax, 8
and eax, dword [ebp - 0x18]
add ebx, eax
mov eax, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
inc dword [ebp - 0x14]
mov dword [eax], ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 8]
jl 0x4d2fc4
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x24]
mov eax, dword [esi + 0x50]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea edi, [edi + eax*4]
mov eax, dword [ebp + 8]
add ecx, dword [eax + 4]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], ecx
jl 0x4d2fb0
jmp 0x4d3b51
cmp byte [edi + 0x2a], 0
jne 0x4d333e
push 0x5942a0
push ebx
call fcn.004be4ee
test al, al
pop ecx
pop ecx
jne 0x4d333e
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4d3112
cmp dword [esi + 0xac], 0
je 0x4d3112
cmp dword [ecx + 0xac], 0
je 0x4d3112
mov eax, dword [ebp + 0x14]
push 0xcc0020
push dword [eax + 4]
push dword [eax]
push dword [ecx + 0xb4]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0xb4]
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4d3b5b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
test al, al
je 0x4d3b5b
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [ebp + 0x18], eax
jne 0x4d323a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x60]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, dword [ebx + 4]
add edx, dword [ecx]
lea ebx, [eax + edx*4]
mov eax, dword [esi + 0x50]
imul eax, dword [ebp + 0x10]
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 0x64]
sar eax, 2
add eax, dword [ebp + 0xc]
cmp byte [edi + 0x29], 0
lea eax, [edx + eax*4]
mov dword [ebp + 0x14], eax
je 0x4d31d9
and dword [ebp + 0x18], 0
cmp dword [ecx + 0xc], 0
jle 0x4d3b51
mov edi, eax
and dword [ebp + 0xc], 0
cmp dword [ecx + 8], 0
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], ebx
jle 0x4d31b1
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add dword [ebp + 0x10], 4
test eax, 0xff000000
je 0x4d31a2
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
add dword [ebp + 0x14], 4
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ecx + 8]
jl 0x4d318d
mov eax, dword [esi + 0x50]
cdq
and edx, 3
add eax, edx
sar eax, 2
inc dword [ebp + 0x18]
lea edi, [edi + eax*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ebx, [ebx + eax*4]
mov eax, dword [ebp + 0x18]
cmp eax, dword [ecx + 0xc]
jl 0x4d317d
jmp 0x4d3b51
and dword [ebp + 0xc], 0
cmp dword [ecx + 0xc], 0
jle 0x4d3b51
mov edi, dword [ecx + 8]
and dword [ebp + 0x10], 0
test edi, edi
mov eax, ebx
jle 0x4d320c
mov edx, dword [ebp + 0x14]
sub edx, ebx
mov edi, dword [eax]
mov dword [eax + edx], edi
mov edi, dword [ecx + 8]
add eax, 4
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], edi
jl 0x4d31f9
mov eax, dword [esi + 0x50]
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp + 0x14]
sar eax, 2
inc dword [ebp + 0xc]
lea eax, [edx + eax*4]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ebx, [ebx + eax*4]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ecx + 0xc]
jl 0x4d31ea
jmp 0x4d3b51
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 4]
imul ecx, dword [eax + 4]
mov eax, dword [esi + 0x50]
imul eax, dword [ebp + 0x10]
add ecx, dword [edi + 0x24]
and dword [ebp - 0x20], 0
add ecx, dword [ebx]
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 0x64]
sar eax, 2
add eax, dword [ebp + 0xc]
cmp byte [edi + 0x29], 0
lea eax, [edx + eax*4]
je 0x4d32da
cmp dword [ebx + 0xc], 0
jle 0x4d3b51
mov edi, eax
and dword [ebp + 0xc], 0
cmp dword [ebx + 8], 0
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], ecx
jle 0x4d32b5
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + eax*4]
inc dword [ebp + 0x14]
test eax, 0xff000000
je 0x4d32a6
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
add dword [ebp + 0x10], 4
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 8]
jl 0x4d328b
mov eax, dword [esi + 0x50]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea edi, [edi + eax*4]
mov eax, dword [ebp + 8]
add ecx, dword [eax + 4]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 0xc]
jl 0x4d327b
jmp 0x4d3b51
cmp dword [ebx + 0xc], 0
jle 0x4d3b51
mov edi, eax
and dword [ebp + 0xc], 0
cmp dword [ebx + 8], 0
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], ecx
jle 0x4d3319
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp + 0x10]
add dword [ebp + 0x10], 4
inc dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 8]
jl 0x4d32f6
mov eax, dword [esi + 0x50]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea edi, [edi + eax*4]
mov eax, dword [ebp + 8]
add ecx, dword [eax + 4]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 0xc]
jl 0x4d32e6
jmp 0x4d3b51
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
test al, al
je 0x4d3b5b
push dword [esi + 0xa0]
mov eax, dword [edi]
push dword [esi + 0x9c]
mov ecx, edi
push dword [esi + 0x98]
push dword [esi + 0x94]
call dword [eax + 0x38]
mov dword [ebp + 0x18], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
cmp dword [edi + 0x20], 0
mov dword [ebp - 0x3c], eax
jne 0x4d3760
mov edi, dword [ebp + 0x14]
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
imul eax, dword [ecx + 4]
mov ecx, dword [edi]
add ecx, eax
mov eax, dword [ebp + 0x18]
lea eax, [eax + ecx*4]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x50]
imul eax, dword [ebp + 0x10]
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 0x64]
sar eax, 2
add eax, dword [ebp + 0xc]
push 0x5942a0
lea eax, [edx + eax*4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3c]
add ecx, eax
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x9c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xa0]
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x18], eax
call fcn.004be4c1
test al, al
pop ecx
pop ecx
je 0x4d3578
and dword [ebp - 0x1c], 0
cmp dword [edi + 0xc], 0
jle 0x4d3b51
mov ebx, 0xff00ff
mov ecx, 0xff00
mov eax, dword [ebp - 4]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
test eax, eax
mov dword [ebp - 0x10], eax
jle 0x4d353d
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 0x20]
mov al, byte [eax]
mov byte [ebp + 0x13], al
movzx eax, al
cmp eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], edx
jle 0x4d344a
mov al, byte [ebp - 0x10]
mov byte [ebp + 0x13], al
mov eax, edx
shr eax, 0x18
mov edx, 0x100
sub edx, eax
cmp edx, 1
jne 0x4d3486
movzx eax, byte [ebp + 0x13]
test eax, eax
mov dword [ebp + 0x10], eax
jle 0x4d352d
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov eax, dword [eax]
add dword [ebp + 0x18], 4
add dword [ebp + 0xc], 4
dec dword [ebp - 0x2c]
mov dword [edx], eax
jne 0x4d346d
jmp 0x4d349e
cmp edx, 0x100
jne 0x4d34a6
movzx eax, byte [ebp + 0x13]
mov dword [ebp + 0x10], eax
shl eax, 2
add dword [ebp + 0x18], eax
add dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
jmp 0x4d352d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edi, eax
add dword [ebp + 0xc], 4
and edi, ebx
imul edi, edx
and eax, ecx
imul eax, edx
mov edx, dword [ebp + 0x18]
add dword [ebp + 0x18], 4
shr edi, 8
shr eax, 8
and edi, ebx
add edi, dword [ebp - 0x40]
and eax, ecx
add eax, edi
mov dword [edx], eax
movzx eax, byte [ebp + 0x13]
cmp eax, 1
mov dword [ebp + 0x10], eax
jle 0x4d352a
dec eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
shr eax, 0x18
add dword [ebp + 0xc], 4
mov edx, 0x100
sub edx, eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edi, eax
and edi, ebx
imul edi, edx
and eax, ecx
imul eax, edx
mov edx, dword [ebp + 0x18]
add dword [ebp + 0x18], 4
shr edi, 8
and edi, ebx
add edi, dword [ebp - 0x40]
shr eax, 8
and eax, ecx
add eax, edi
dec dword [ebp - 0x2c]
mov dword [edx], eax
jne 0x4d34e3
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
sub dword [ebp - 0x10], eax
add dword [ebp - 0x20], eax
cmp dword [ebp - 0x10], 0
jg 0x4d342c
mov eax, dword [esi + 0x50]
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp - 4]
sar eax, 2
lea eax, [edx + eax*4]
mov edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add dword [ebp - 0xc], eax
inc dword [ebp - 0x1c]
lea edx, [edx + eax*4]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edi + 0xc]
mov dword [ebp - 8], edx
jl 0x4d340c
jmp 0x4d3b51
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
imul eax, ecx
cdq
mov dword [ebp - 0x1c], ecx
mov ecx, 0xff
idiv ecx
and dword [ebp - 0x28], 0
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 4]
imul eax, dword [ebp - 0x1c]
cdq
idiv ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 8]
imul eax, dword [ebp - 0x1c]
cdq
idiv ecx
cmp dword [edi + 0xc], 0
mov dword [ebp - 0x30], eax
jle 0x4d3b51
mov eax, dword [ebp - 4]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
test eax, eax
mov dword [ebp - 0x18], eax
jle 0x4d3725
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
movzx edx, cl
cmp edx, dword [ebp - 0x18]
jle 0x4d35eb
mov cl, byte [ebp - 0x18]
shr eax, 0x18
mov ebx, 0xff
cmp eax, ebx
jne 0x4d3658
cmp dword [ebp - 0x1c], ebx
jne 0x4d366f
movzx eax, cl
test eax, eax
mov dword [ebp - 0x20], eax
jle 0x4d3715
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add dword [ebp + 0xc], 4
mov ecx, eax
and ecx, dword [ebp + 0x18]
mov edx, eax
and edx, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x30]
and eax, dword [ebp - 0x14]
imul edx, dword [ebp - 0x34]
imul eax, dword [ebp - 0x38]
shr ecx, 8
and ecx, dword [ebp + 0x18]
shr edx, 8
and edx, dword [ebp - 0x10]
shr eax, 8
and eax, dword [ebp - 0x14]
add ecx, edx
add ecx, eax
mov eax, dword [ebp + 0x10]
add dword [ebp + 0x10], 4
dec dword [ebp - 0x2c]
mov dword [eax], ecx
jne 0x4d360d
jmp 0x4d3712
test eax, eax
jne 0x4d366f
movzx eax, cl
mov ecx, eax
shl ecx, 2
add dword [ebp + 0x10], ecx
add dword [ebp + 0xc], ecx
jmp 0x4d3715
movzx eax, cl
test eax, eax
mov dword [ebp - 0x20], eax
jle 0x4d3715
mov dword [ebp - 0x3c], eax
jmp 0x4d3687
mov ebx, 0xff
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov eax, edi
shr eax, 0x18
imul eax, dword [ebp - 0x1c]
xor edx, edx
div ebx
mov dword [ebp - 0x2c], edi
and edi, dword [ebp + 0x18]
mov ecx, 0x100
imul edi, dword [ebp - 0x30]
add dword [ebp + 0xc], 4
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, eax
and edx, dword [ebp + 0x18]
mov dword [ebp - 0x40], ecx
imul edx, ecx
add edx, edi
mov edi, eax
and edi, dword [ebp - 0x10]
and eax, dword [ebp - 0x14]
imul edi, ecx
mov ecx, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x40]
and ecx, dword [ebp - 0x10]
shr edx, 8
imul ecx, dword [ebp - 0x34]
and edx, dword [ebp + 0x18]
add edi, ecx
mov ecx, dword [ebp - 0x2c]
and ecx, dword [ebp - 0x14]
shr edi, 8
imul ecx, dword [ebp - 0x38]
and edi, dword [ebp - 0x10]
add eax, ecx
shr eax, 8
and eax, dword [ebp - 0x14]
add edx, edi
add edx, eax
mov eax, dword [ebp + 0x10]
add dword [ebp + 0x10], 4
dec dword [ebp - 0x3c]
mov dword [eax], edx
jne 0x4d3682
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], 0
jg 0x4d35d6
mov eax, dword [esi + 0x50]
mov ecx, dword [ebp - 4]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add dword [ebp - 0xc], eax
inc dword [ebp - 0x28]
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x28]
cmp eax, dword [edi + 0xc]
mov dword [ebp - 8], ecx
jl 0x4d35b6
jmp 0x4d3b51
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
imul ecx, dword [edx + 4]
mov eax, dword [eax]
mov edi, dword [edi + 0x24]
mov dword [ebp - 0x40], eax
add edi, ecx
add edi, eax
mov eax, dword [esi + 0x50]
imul eax, dword [ebp + 0x10]
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 0x64]
sar eax, 2
add eax, dword [ebp + 0xc]
push 0x5942a0
lea eax, [edx + eax*4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
add ecx, eax
mov eax, dword [esi + 0x98]
add ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x9c]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xa0]
push ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0x10], eax
call fcn.004be4c1
test al, al
pop ecx
pop ecx
je 0x4d3963
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x24], 0
cmp dword [eax + 0xc], 0
jle 0x4d3b51
mov ebx, 0xff00ff
mov ecx, 0xff00
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
test eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], eax
jle 0x4d392b
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + eax*4]
mov eax, dword [ebp - 0x28]
mov al, byte [eax]
mov byte [ebp + 0x13], al
movzx eax, al
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], edx
jle 0x4d3836
mov al, byte [ebp - 0x18]
mov byte [ebp + 0x13], al
mov eax, edx
shr eax, 0x18
mov edx, 0x100
sub edx, eax
cmp edx, 1
jne 0x4d387a
movzx eax, byte [ebp + 0x13]
test eax, eax
mov dword [ebp + 0x10], eax
jle 0x4d391b
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + eax*4]
mov dword [edi], eax
add edi, 4
inc dword [ebp + 0xc]
dec dword [ebp - 0x3c]
jne 0x4d3859
mov dword [ebp - 0xc], edi
jmp 0x4d3918
cmp edx, 0x100
jne 0x4d3894
movzx eax, byte [ebp + 0x13]
add dword [ebp + 0xc], eax
lea edi, [edi + eax*4]
mov dword [ebp - 0xc], edi
jmp 0x4d391b
mov eax, dword [edi]
mov edi, eax
and edi, ebx
inc dword [ebp + 0xc]
imul edi, edx
and eax, ecx
imul eax, edx
shr edi, 8
and edi, ebx
add edi, dword [ebp - 0x40]
shr eax, 8
and eax, ecx
add eax, edi
mov edi, dword [ebp - 0xc]
mov dword [edi], eax
movzx eax, byte [ebp + 0x13]
add edi, 4
cmp eax, 1
mov dword [ebp - 0xc], edi
mov dword [ebp + 0x10], eax
jle 0x4d391b
dec eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x40], eax
shr eax, 0x18
inc dword [ebp + 0xc]
mov edx, 0x100
sub edx, eax
mov eax, dword [edi]
mov edi, eax
and edi, ebx
imul edi, edx
and eax, ecx
imul eax, edx
shr edi, 8
and edi, ebx
add edi, dword [ebp - 0x40]
shr eax, 8
and eax, ecx
add eax, edi
mov edi, dword [ebp - 0xc]
mov dword [edi], eax
add edi, 4
dec dword [ebp - 0x3c]
mov dword [ebp - 0xc], edi
jne 0x4d38cf
mov eax, dword [ebp + 0x10]
sub dword [ebp - 0x18], eax
add dword [ebp - 0x28], eax
cmp dword [ebp - 0x18], 0
jg 0x4d3811
mov eax, dword [esi + 0x50]
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp - 8]
sar eax, 2
lea eax, [edx + eax*4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add dword [ebp - 4], eax
add dword [ebp - 0x10], eax
inc dword [ebp - 0x24]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24]
cmp edx, dword [eax + 0xc]
jl 0x4d37ee
jmp 0x4d3b51
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
imul eax, ecx
cdq
mov dword [ebp - 0x1c], ecx
mov edi, 0xff
mov ecx, edi
idiv ecx
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 4]
imul eax, dword [ebp - 0x1c]
cdq
idiv ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 8]
imul eax, dword [ebp - 0x1c]
cdq
idiv ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0xc], 0
jle 0x4d3b51
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
test eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], eax
jle 0x4d3b1e
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx]
movzx edx, cl
cmp edx, dword [ebp - 0xc]
jle 0x4d39e5
mov cl, byte [ebp - 0xc]
shr eax, 0x18
cmp eax, edi
jne 0x4d3a52
cmp dword [ebp - 0x1c], edi
jne 0x4d3a67
movzx eax, cl
test eax, eax
mov dword [ebp - 0x28], eax
jle 0x4d3b0e
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + eax*4]
inc dword [ebp + 0xc]
mov ecx, eax
and ecx, dword [ebp + 0x10]
mov edx, eax
and edx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x38]
and eax, dword [ebp - 0x14]
imul edx, dword [ebp - 0x34]
imul eax, dword [ebp - 0x30]
shr ecx, 8
and ecx, dword [ebp + 0x10]
shr edx, 8
and edx, dword [ebp - 0x18]
shr eax, 8
and eax, dword [ebp - 0x14]
add ecx, edx
add ecx, eax
mov dword [ebx], ecx
add ebx, 4
dec dword [ebp - 0x3c]
jne 0x4d3a02
mov dword [ebp - 0x20], ebx
jmp 0x4d3b06
test eax, eax
jne 0x4d3a67
movzx eax, cl
add dword [ebp + 0xc], eax
lea ebx, [ebx + eax*4]
mov dword [ebp - 0x20], ebx
jmp 0x4d3b0e
movzx eax, cl
test eax, eax
mov dword [ebp - 0x28], eax
jle 0x4d3b0e
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ecx + eax*4]
mov eax, edi
shr eax, 0x18
imul eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, 0xff
div ecx
inc dword [ebp + 0xc]
inc ecx
mov dword [ebp - 0x3c], edi
and edi, dword [ebp + 0x10]
imul edi, dword [ebp - 0x38]
sub ecx, eax
mov eax, dword [ebx]
mov edx, eax
and edx, dword [ebp + 0x10]
mov dword [ebp - 0x44], ecx
imul edx, ecx
add edx, edi
mov edi, eax
and edi, dword [ebp - 0x18]
and eax, dword [ebp - 0x14]
imul edi, ecx
mov ecx, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x44]
and ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
imul ecx, dword [ebp - 0x34]
add edi, ecx
mov ecx, dword [ebp - 0x3c]
and ecx, dword [ebp - 0x14]
shr edx, 8
imul ecx, dword [ebp - 0x30]
and edx, dword [ebp + 0x10]
add eax, ecx
shr edi, 8
and edi, dword [ebp - 0x18]
shr eax, 8
and eax, dword [ebp - 0x14]
add edx, edi
add edx, eax
mov dword [ebx], edx
add ebx, 4
dec dword [ebp - 0x40]
mov dword [ebp - 0x20], ebx
jne 0x4d3a78
mov eax, dword [ebp - 0x28]
mov edi, 0xff
sub dword [ebp - 0xc], eax
add dword [ebp - 0x24], eax
cmp dword [ebp - 0xc], 0
jg 0x4d39c9
mov eax, dword [esi + 0x50]
mov ecx, dword [ebp - 8]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [ecx + eax*4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add dword [ebp - 4], eax
add dword [ebp - 0x10], eax
inc dword [ebp - 0x2c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax + 0xc]
jl 0x4d39a6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x98]
pop edi
pop esi
pop ebx
leave
ret 0x14