Function at 0x4245d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x24c
mov eax, dword [0x491b00]
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.004073e8
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 0x492e38
call fcn.00401160
push eax
call fcn.00401e70
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 0x424630
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 0x424693
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 0x424670
xor eax, eax
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x264], eax
jle 0x4248e2
nop
inc edi
and edi, 0x800000ff
jns 0x4246d1
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 0x4246ec
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.004014e0
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.00401690
xorps xmm0, xmm0
mov dword [esp + 0x50], 1
movups xmmword [esp + 0x40], xmm0
push 1
mov ecx, 0x492e38
mov dword [esp + 0x58], 0xf
mov word [esp + 0x44], 0x30
call fcn.00402b50
push eax
call fcn.00401e70
cmp dword [esp + 0x58], 0xf
lea eax, [esp + 0x44]
cmova eax, dword [esp + 0x44]
push eax
call fcn.0040c77e
add esp, 8
mov ecx, 0x492e38
mov esi, eax
push 3
call fcn.00402b50
push eax
call fcn.00401e70
mov edi, dword [esp + 0x24]
add esp, 4
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov ecx, dword [edi + esi*4]
movzx eax, byte [ebx + esi]
xor byte [ecx + edx], al
mov ecx, dword [esp + 0x54]
cmp ecx, 0xf
jbe 0x424820
mov edx, dword [esp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x424816
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42491c
push ecx
push edx
call fcn.00407418
add esp, 8
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
test edi, edi
je 0x424881
mov eax, dword [esp + 0x28]
mov ecx, edi
sub eax, edi
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x42485f
mov edi, dword [ecx - 4]
add eax, 0x23
sub ecx, edi
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x42491c
push eax
push edi
call fcn.00407418
add esp, 8
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
test ebx, ebx
je 0x4248c7
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x4248a5
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42491c
push ecx
push ebx
call fcn.00407418
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 0x4248e2
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
jmp 0x4246c0
mov eax, dword [esp + 0x18]
push dword [eax + 4]
lea eax, [esp + 0x1c]
push eax
mov ecx, eax
call fcn.004019c0
push 0x2c
push dword [esp + 0x1c]
call fcn.00407418
mov ecx, dword [esp + 0x260]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040742b
add esp, 0x24c
ret
call fcn.0040bbff
int3