Function at 0x4225d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x24c
mov eax, dword [0x479600]
xor eax, esp
mov dword [esp + 0x248], eax
mov eax, dword [esp + 0x250]
push ebx
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], 0
call fcn.004096f2
mov esi, dword [esp + 0x270]
add esp, 4
mov edi, dword [esp + 0x268]
xor ebx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x18], eax
nop word [eax + eax]
push str.Zatlat
push 0x47b2c8
call fcn.00401660
push eax
call fcn.00402010
mov eax, ebx
mov byte [esp + ebx + 0x64], bl
cdq
add esp, 0xc
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ebx + 0x158], al
inc ebx
cmp ebx, 0x100
jl 0x422630
xor esi, esi
xor edi, edi
nop dword [eax + eax]
mov dl, byte [esp + esi + 0x58]
movzx eax, byte [esp + esi + 0x158]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x422693
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x58]
mov byte [esp + esi + 0x58], al
inc esi
mov byte [esp + edi + 0x58], dl
cmp esi, 0x100
jl 0x422670
xor eax, eax
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x264], eax
jle 0x4228af
nop
inc edi
and edi, 0x800000ff
jns 0x4226d1
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x58]
movzx esi, bl
add eax, esi
mov dword [esp + 0x3c], edi
and eax, 0x800000ff
jns 0x4226ec
dec eax
or eax, 0xffffff00
inc eax
push 0
push 0
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
movzx eax, byte [esp + ecx + 0x64]
mov byte [esp + edi + 0x64], al
mov byte [esp + ecx + 0x64], bl
call dword [sym.imp.GDI32.dll_Polyline]
movzx eax, byte [esp + edi + 0x58]
lea ecx, [esp + 0x58]
add eax, esi
mov dword [esp + 0x2c], 0
movzx eax, al
add eax, ecx
mov dword [esp + 0x30], 0
push eax
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], 0
call fcn.004019f0
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 0
push eax
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00401ba0
xorps xmm0, xmm0
mov dword [esp + 0x50], 1
lea eax, [esp + 0x40]
mov dword [esp + 0x54], 0xf
movups xmmword [esp + 0x40], xmm0
push eax
mov word [esp + 0x44], 0x30
call fcn.0040eb0e
mov esi, dword [esp + 0x24]
add esp, 4
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + eax*4]
movzx eax, byte [edi + eax]
xor byte [ecx + edx], al
mov ecx, dword [esp + 0x54]
cmp ecx, 0xf
jbe 0x4227ed
mov edx, dword [esp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4227e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4228e9
push ecx
push edx
call fcn.00409722
add esp, 8
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
test esi, esi
je 0x42284e
mov eax, dword [esp + 0x28]
mov ecx, esi
sub eax, esi
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x42282c
mov esi, dword [ecx - 4]
add eax, 0x23
sub ecx, esi
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x4228e9
push eax
push esi
call fcn.00409722
add esp, 8
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
test edi, edi
je 0x422894
mov ecx, dword [esp + 0x34]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x422872
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4228e9
push ecx
push edi
call fcn.00409722
add esp, 8
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
inc ebp
mov dword [esp + 0x10], ebp
cmp ebp, dword [esp + 0x264]
jge 0x4228af
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
jmp 0x4226c0
mov eax, dword [esp + 0x18]
push dword [eax + 4]
lea eax, [esp + 0x1c]
push eax
mov ecx, eax
call fcn.00401ed0
push 0x2c
push dword [esp + 0x1c]
call fcn.00409722
mov ecx, dword [esp + 0x260]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409a3b
add esp, 0x24c
ret
call fcn.0040e04f
int3