Function at 0x433e4c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
mov byte [ebp - 0x19], 0
mov eax, dword [ebp + 8]
mov dl, byte [eax + 0x1170]
test dl, dl
je 0x433ff5
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x460]
cmp eax, 0x1e
jge 0x433ff5
mov edx, dword [ebp + 8]
fld qword [edx + 0x10]
fadd dword [0x434568]
call fcn.0045e2c0
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 8]
fld qword [edx + 0x18]
fadd dword [0x434568]
call fcn.0045e2c0
mov dword [ebp - 0x24], eax
xor edx, edx
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x28]
cmp ecx, eax
jge 0x433ff5
xor edx, edx
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0x2c]
cmp ecx, eax
jge 0x433fe1
xor edx, edx
mov dword [ebp - 0x30], edx
xor ecx, ecx
mov dword [ebp - 0x34], ecx
xor eax, eax
mov dword [ebp - 0x38], eax
xor edx, edx
mov dword [ebp - 0x3c], edx
xor esi, esi
mov eax, dword [ebp - 0x20]
cmp esi, eax
jge 0x433f43
xor ebx, ebx
mov eax, dword [ebp - 0x24]
cmp ebx, eax
jge 0x433f3b
mov edx, dword [ebp - 0x2c]
add edx, ebx
push edx
mov ecx, dword [ebp - 0x28]
add ecx, esi
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00436484
mov edx, eax
mov edi, eax
sar edx, 0x10
and eax, 0xff
sar edi, 8
and edx, 0xff
add dword [ebp - 0x30], edx
mov ecx, edi
mov edi, ecx
add esp, 0xc
and edi, 0xff
add dword [ebp - 0x34], edi
add dword [ebp - 0x38], eax
inc dword [ebp - 0x3c]
inc ebx
mov edx, dword [ebp - 0x24]
cmp ebx, edx
jl 0x433ef0
inc esi
mov ecx, dword [ebp - 0x20]
cmp esi, ecx
jl 0x433ee7
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
cdq
idiv ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
cdq
idiv ecx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
cdq
idiv ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0041fe10
add esp, 0xc
mov ebx, eax
push ebx
fld qword [ebp + 0x18]
call fcn.0045e2c0
mov ecx, eax
mov eax, dword [ebp - 0x2c]
cdq
idiv dword [ebp - 0x24]
add ecx, eax
push ecx
fld qword [ebp + 0x10]
call fcn.0045e2c0
mov ecx, eax
mov eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x20]
add ecx, eax
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x460]
mov edx, eax
lea eax, [edx + eax*4]
lea eax, [edx + eax*2]
shl eax, 2
mov ecx, dword [ebp + 8]
add eax, ecx
add eax, 0xc1c
push eax
call fcn.004204a0
add esp, 0x10
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x2c]
cmp edx, ecx
jl 0x433eca
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x28]
cmp edx, ecx
jl 0x433eb7
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
cmp edx, 3
je 0x434009
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
dec eax
jne 0x43400e
mov esi, dword [ebp + 0xc]
jmp 0x43403c
mov byte [ebp - 0x19], 1
push 0x2c
call fcn.004555e4
pop ecx
mov esi, eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.00436848
add esp, 0x18
push 0
push esi
call fcn.00436040
add esp, 8
mov edx, dword [ebp + 0x38]
test edx, edx
jne 0x43404a
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x434090
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 0x38]
test edx, edx
jne 0x434068
mov ecx, dword [ebp + 0x3c]
mov dword [ebp + 0x38], ecx
mov eax, dword [ebp + 0x3c]
test eax, eax
jne 0x434075
mov edx, dword [ebp + 0x38]
mov dword [ebp + 0x3c], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x38]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x3c]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00433d54
pop ecx
fild dword [ebp + 0x28]
mov edx, dword [ebp + 8]
fdiv qword [edx + 0x10]
fstp qword [ebp - 8]
fild dword [ebp + 0x2c]
mov ecx, dword [ebp + 8]
fdiv qword [ecx + 0x18]
fstp qword [ebp - 0x10]
test byte [ebp + 0x28], 1
je 0x4340b7
inc dword [ebp + 0x28]
jmp 0x4340b7
sub dword [ebp + 0x28], 2
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x28]
add eax, edx
mov edx, dword [ecx]
cmp eax, edx
jg 0x4340b3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x2c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0x24]
add eax, edx
cmp ecx, eax
jge 0x4340e8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 0x24]
sub eax, edx
mov dword [ebp + 0x2c], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x45c]
test eax, eax
je 0x4340f9
mov byte [ebp + 0x30], 1
mov edx, dword [ebp + 0x34]
dec edx
je 0x43410b
mov ecx, dword [ebp + 0x34]
cmp ecx, 2
jne 0x4342d4
mov al, byte [ebp + 0x30]
test al, al
je 0x434174
mov edx, dword [ebp + 0x2c]
push edx
mov ecx, dword [ebp + 0x28]
push ecx
mov eax, dword [ebp + 0x2c]
push eax
mov edx, dword [ebp + 0x28]
push edx
mov ecx, dword [ebp + 0x28]
push ecx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add esp, 0xfffffff8
fld qword [ecx + 0x40]
fsub qword [ebp - 8]
fld qword [ebp + 0x18]
fadd qword [eax + 0x48]
fsubp st(1)
fstp qword [esp]
mov edx, dword [ebp + 8]
add esp, 0xfffffff8
fld qword [ebp + 0x10]
fadd qword [edx + 0x58]
fstp qword [esp]
push str.gsave_n_g__g_translate_n_g__g_scale_n_picture__d_string_def_n_d__d_8_n__0__d__d_0_0_0___ncurrentfile_picture_readhexstring_pop_image_n
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x454]
push eax
call fcn.00458c84
add esp, 0x3c
jmp 0x4341da
mov edx, dword [ebp + 0x2c]
push edx
mov ecx, dword [ebp + 0x2c]
neg ecx
push ecx
mov eax, dword [ebp + 0x28]
push eax
mov edx, dword [ebp + 0x2c]
push edx
mov ecx, dword [ebp + 0x28]
push ecx
mov eax, dword [ebp + 0x28]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
add esp, 0xfffffff8
fld qword [eax + 0x40]
fsub qword [ebp - 0x10]
fld qword [ebp + 0x18]
fadd qword [edx + 0x48]
fsubp st(1)
fstp qword [esp]
mov ecx, dword [ebp + 8]
add esp, 0xfffffff8
fld qword [ebp + 0x10]
fadd qword [ecx + 0x58]
fstp qword [esp]
push str.gsave_n_g__g_translate_n_g__g_scale_n_picture__d_string_def_n_d__d_8_n___d_0_0__d_0__d___ncurrentfile_picture_readhexstring_pop_image_n
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x454]
push edx
call fcn.00458c84
add esp, 0x40
mov ecx, dword [esi + 8]
sub ecx, 3
jne 0x4342be
xor edi, edi
mov eax, dword [ebp + 0x2c]
cmp edi, eax
jge 0x43450a
xor ebx, ebx
mov eax, dword [ebp + 0x28]
cmp ebx, eax
jge 0x434299
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
add edx, edi
add ecx, ebx
imul edx, dword [esi]
add edx, ecx
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp + 0x34]
dec edx
jne 0x434251
test eax, eax
je 0x434238
push 0x63ecff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x454]
push eax
call fcn.00458c84
add esp, 8
jmp 0x43428d
push 0x63ed02
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x454]
push ecx
call fcn.00458c84
add esp, 8
jmp 0x43428d
mov edx, dword [ebp + 0x34]
cmp edx, 2
jne 0x43428d
test eax, eax
jne 0x434276
push 0x63ecff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x454]
push ecx
call fcn.00458c84
add esp, 8
jmp 0x43428d
push 0x63ed02
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x454]
push edx
call fcn.00458c84
add esp, 8
inc ebx
mov ecx, dword [ebp + 0x28]
cmp ebx, ecx
jl 0x434200
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x454]
push edx
push 0xa
call fcn.0045b67c
add esp, 8
inc edi
mov ecx, dword [ebp + 0x2c]
cmp edi, ecx
jl 0x4341f3
jmp 0x43450a
mov eax, dword [esi + 8]
push eax
push str.ps_unsupported_graphics_format:__d_n
call fcn.00459b88
add esp, 8
jmp 0x43450a
mov dl, byte [ebp + 0x30]
test dl, dl
je 0x434340
mov ecx, dword [ebp + 0x2c]
push ecx
mov eax, dword [ebp + 0x28]
push eax
mov edx, dword [ebp + 0x2c]
push edx
mov ecx, dword [ebp + 0x28]
push ecx
mov eax, dword [ebp + 0x28]
lea eax, [eax + eax*2]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
add esp, 0xfffffff8
fld qword [eax + 0x40]
fsub qword [ebp - 8]
fld qword [ebp + 0x18]
fadd qword [edx + 0x48]
fsubp st(1)
fstp qword [esp]
mov ecx, dword [ebp + 8]
add esp, 0xfffffff8
fld qword [ebp + 0x10]
fadd qword [ecx + 0x58]
fstp qword [esp]
push str.gsave_n_g__g_translate_n_g__g_scale_n_picture__d_string_def_n_d__d_8_n__0__d__d_0_0_0___ncurrentfile_picture_readhexstring_pop_false_3_colorimage_n
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x454]
push edx
call fcn.00458c84
add esp, 0x3c
jmp 0x4343a9
mov ecx, dword [ebp + 0x2c]
push ecx
mov eax, dword [ebp + 0x2c]
neg eax
push eax
mov edx, dword [ebp + 0x28]
push edx
mov ecx, dword [ebp + 0x2c]
push ecx
mov eax, dword [ebp + 0x28]
push eax
mov edx, dword [ebp + 0x28]
lea edx, [edx + edx*2]
push edx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add esp, 0xfffffff8
fld qword [edx + 0x40]
fsub qword [ebp - 0x10]
fld qword [ebp + 0x18]
fadd qword [ecx + 0x48]
fsubp st(1)
fstp qword [esp]
mov eax, dword [ebp + 8]
add esp, 0xfffffff8
fld qword [ebp + 0x10]
fadd qword [eax + 0x58]
fstp qword [esp]
push str.gsave_n_g__g_translate_n_g__g_scale_n_picture__d_string_def_n_d__d_8_n___d_0_0__d_0__d___ncurrentfile_picture_readhexstring_pop_false_3_colorimage_n
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x454]
push ecx
call fcn.00458c84
add esp, 0x40
mov eax, dword [esi + 8]
dec eax
je 0x434494
sub eax, 2
jne 0x4344f6
xor edi, edi
mov eax, dword [ebp + 0x2c]
cmp edi, eax
jge 0x43450a
xor ebx, ebx
mov eax, dword [ebp + 0x28]
cmp ebx, eax
jge 0x434472
mov edx, dword [ebp + 0x34]
cmp edx, 3
jne 0x434444
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
add ecx, edi
add eax, ebx
imul ecx, dword [esi]
add ecx, eax
mov edx, dword [esi + 0xc]
mov eax, dword [edx + ecx*4]
xor ecx, ecx
mov edx, eax
sar edx, 0x10
mov cl, dl
mov edx, eax
mov dword [ebp - 0x40], ecx
xor ecx, ecx
sar edx, 8
and eax, 0xff
mov cl, dl
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
cmp eax, edx
jge 0x434420
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
cmp eax, edx
jge 0x43442a
mov eax, dword [ebp - 0x48]
push eax
push eax
push eax
call fcn.0041fe10
add esp, 0xc
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00433dcc
add esp, 8
jmp 0x434466
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
add ecx, edi
add eax, ebx
imul ecx, dword [esi]
add ecx, eax
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + ecx*4]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00433dcc
add esp, 8
inc ebx
mov edx, dword [ebp + 0x28]
cmp ebx, edx
jl 0x4343d6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x454]
push eax
push 0xa
call fcn.0045b67c
add esp, 8
inc edi
mov edx, dword [ebp + 0x2c]
cmp edi, edx
jl 0x4343c9
jmp 0x43450a
xor edi, edi
mov eax, dword [ebp + 0x2c]
cmp edi, eax
jge 0x43450a
xor ebx, ebx
mov eax, dword [ebp + 0x28]
cmp ebx, eax
jge 0x4344d8
mov edx, dword [ebp + 0x24]
mov ecx, dword [esi + 0xc]
add edx, edi
imul edx, dword [esi]
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 0x20]
add eax, ecx
mov ecx, dword [esi + 0x10]
movzx edx, byte [eax + edx]
mov eax, dword [ecx + edx*4]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00433dcc
add esp, 8
inc ebx
mov ecx, dword [ebp + 0x28]
cmp ebx, ecx
jl 0x4344a6
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x454]
push edx
push 0xa
call fcn.0045b67c
add esp, 8
inc edi
mov ecx, dword [ebp + 0x2c]
cmp edi, ecx
jl 0x43449d
jmp 0x43450a
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
push edx
push str.ps_unsupported_graphics_format:__d_n
call fcn.00459b88
add esp, 8
push str.grestore_n_n
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x454]
push eax
call fcn.00458c84
add esp, 8
mov edx, dword [ebp + 0x38]
test edx, edx
jne 0x43452f
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x43454a
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
push edx
call fcn.00433d54
pop ecx
mov cl, byte [ebp - 0x19]
test cl, cl
je 0x43455f
push esi
call fcn.00439178
pop ecx
push esi
call fcn.004555f4
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret