Function at 0x41de0b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, 0x45fc00
call fcn.0045d320
sub esp, 0x48
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 4
movzx eax, word [edi + 6]
movzx ecx, word [edi + 4]
imul eax, ecx
mov ebx, dword [esi + 0x3aa8]
mov ecx, esi
imul ebx, eax
lea eax, [ebp - 0x40]
push eax
call fcn.004186a8
mov eax, dword [ebp - 0x40]
mov ecx, esi
push eax
mov dword [ebp + 8], eax
call fcn.00418776
push dword [ebp + 8]
mov ecx, esi
push dword [esi + 0xbc]
call fcn.004186a8
push ebx
mov ecx, esi
call fcn.00418834
mov ecx, dword [esi + 0xbc]
lea eax, [esi + 0x148]
mov dword [esi + 0x158], ebx
xor ebx, ebx
cmp byte [esi + 0x144], bl
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x174], ebx
mov dword [esi + 0x14c], ecx
mov ecx, dword [esi + 0x13c]
mov dword [esi + 0x154], ecx
jne 0x41dee1
push 0x38
push str.1.1.4
push eax
mov dword [esi + 0x150], ebx
mov dword [esi + 0x15c], ebx
mov dword [esi + 0x168], ebx
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x170], ebx
call fcn.0044c7a0
add esp, 0xc
cmp eax, ebx
je 0x41deda
push eax
push str.zlib_inflateInit_error:__d
jmp 0x41defb
mov byte [esi + 0x144], 1
lea eax, [esi + 0x148]
push 2
push eax
call fcn.0044c7c0
pop ecx
cmp eax, ebx
pop ecx
jge 0x41df13
push eax
push str.zlib_inflate_error:__d
push str.C:projectsAmmyy_sources_viewer_vrClientZlib.cpp
push ebx
push 0x47a230
call fcn.0040e807
add esp, 0x14
jmp 0x41e2d9
mov al, byte [esi + 0x3a67]
lea ecx, [esi + 0xdc]
mov byte [ebp - 0xe], al
mov ax, word [esi + 0x3a61]
mov word [ebp - 0x34], ax
mov al, byte [esi + 0x3a68]
mov byte [ebp - 0xd], al
mov ax, word [esi + 0x3a63]
mov word [ebp - 0x30], ax
mov al, byte [esi + 0x3a69]
mov byte [ebp + 0xb], al
mov ax, word [esi + 0x3a65]
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x3c], ecx
call fcn.0043789c
mov ecx, dword [esi + 0x38e4]
mov eax, dword [esi + 0x38e8]
push ecx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x38ec]
mov ebx, dword [esi + 0x38e8]
push 0
push eax
push ebx
mov dword [ebp - 0x48], ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
mov dword [ebp - 0x4c], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov al, byte [esi + 0x3a5e]
mov byte [ebp - 4], 2
cmp al, 8
je 0x41e1c9
cmp al, 0x10
je 0x41e0d7
cmp al, 0x18
je 0x41dfe4
cmp al, 0x20
je 0x41dfe4
movzx eax, al
push eax
push str.ERROR:_Invalid_number_of_bits_per_pixel:__d
push str.C:projectsAmmyy_sources_viewer_vrClientZlib.cpp
push 0
push 0x47a230
call fcn.0040e807
add esp, 0x14
jmp 0x41e2b5
mov eax, dword [esi + 0x13c]
movzx ecx, word [edi + 6]
mov dword [ebp - 0x20], eax
movzx eax, word [edi + 2]
add ecx, eax
mov dword [ebp - 0x28], eax
cmp eax, ecx
jge 0x41e2b5
movzx eax, word [edi]
movzx ecx, word [edi + 4]
add ecx, eax
mov dword [ebp - 0x24], eax
cmp eax, ecx
jge 0x41e0bc
movzx eax, byte [ebp + 0xb]
mov dword [ebp - 0x14], eax
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0xe]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov ebx, dword [eax]
mov eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x2c]
and eax, ecx
imul eax, eax, 0xff
div ecx
mov ecx, dword [ebp - 0x18]
movzx edx, al
mov eax, ebx
or dh, 2
shr eax, cl
movzx ecx, word [ebp - 0x30]
and eax, ecx
imul eax, eax, 0xff
shl edx, 8
mov ebx, edx
xor edx, edx
div ecx
mov ecx, dword [ebp - 0x1c]
xor edx, edx
movzx eax, al
or ebx, eax
mov eax, dword [ebp - 0x20]
shl ebx, 8
mov eax, dword [eax]
shr eax, cl
movzx ecx, word [ebp - 0x34]
and eax, ecx
imul eax, eax, 0xff
div ecx
movzx eax, al
or ebx, eax
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push dword [esi + 0x38e8]
call dword [sym.imp.GDI32.dll_SetPixelV]
movzx eax, word [edi]
movzx ecx, word [edi + 4]
add dword [ebp - 0x20], 4
inc dword [ebp - 0x24]
add eax, ecx
cmp dword [ebp - 0x24], eax
jl 0x41e02b
movzx eax, word [edi + 2]
movzx ecx, word [edi + 6]
inc dword [ebp - 0x28]
add eax, ecx
cmp dword [ebp - 0x28], eax
jl 0x41e002
jmp 0x41e2b5
mov eax, dword [esi + 0x13c]
movzx ecx, word [edi + 6]
mov dword [ebp - 0x28], eax
movzx eax, word [edi + 2]
add ecx, eax
mov dword [ebp - 0x20], eax
cmp eax, ecx
jge 0x41e2b5
movzx eax, word [edi]
movzx ecx, word [edi + 4]
add ecx, eax
mov dword [ebp - 0x24], eax
cmp eax, ecx
jge 0x41e1ae
movzx eax, byte [ebp + 0xb]
mov dword [ebp - 0x14], eax
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0xe]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
movzx ebx, word [eax]
mov eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x2c]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
mov ecx, dword [ebp - 0x18]
movzx edx, al
mov eax, ebx
or dh, 2
shr eax, cl
movzx ecx, word [ebp - 0x30]
and eax, ecx
imul eax, eax, 0xff
shl edx, 8
mov ebx, edx
cdq
idiv ecx
mov ecx, dword [ebp - 0x1c]
movzx eax, al
or ebx, eax
mov eax, dword [ebp - 0x28]
shl ebx, 8
movzx eax, word [eax]
shr eax, cl
movzx ecx, word [ebp - 0x34]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
movzx eax, al
or ebx, eax
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [esi + 0x38e8]
call dword [sym.imp.GDI32.dll_SetPixelV]
movzx eax, word [edi]
movzx ecx, word [edi + 4]
add dword [ebp - 0x28], 2
inc dword [ebp - 0x24]
add eax, ecx
cmp dword [ebp - 0x24], eax
jl 0x41e11e
movzx eax, word [edi + 2]
movzx ecx, word [edi + 6]
inc dword [ebp - 0x20]
add eax, ecx
cmp dword [ebp - 0x20], eax
jl 0x41e0f5
jmp 0x41e2b5
mov eax, dword [esi + 0x13c]
movzx ecx, word [edi + 6]
mov dword [ebp - 0x28], eax
movzx eax, word [edi + 2]
add ecx, eax
mov dword [ebp - 0x20], eax
cmp eax, ecx
jge 0x41e2b5
movzx eax, word [edi]
movzx ecx, word [edi + 4]
add ecx, eax
mov dword [ebp - 0x24], eax
cmp eax, ecx
jge 0x41e29f
movzx eax, byte [ebp + 0xb]
mov dword [ebp - 0x14], eax
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0xe]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
movzx ebx, byte [eax]
mov eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x2c]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
mov ecx, dword [ebp - 0x18]
movzx edx, al
mov eax, ebx
or dh, 2
shr eax, cl
movzx ecx, word [ebp - 0x30]
and eax, ecx
imul eax, eax, 0xff
shl edx, 8
mov ebx, edx
cdq
idiv ecx
mov ecx, dword [ebp - 0x1c]
movzx eax, al
or ebx, eax
mov eax, dword [ebp - 0x28]
shl ebx, 8
movzx eax, byte [eax]
shr eax, cl
movzx ecx, word [ebp - 0x34]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
movzx eax, al
or ebx, eax
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [esi + 0x38e8]
call dword [sym.imp.GDI32.dll_SetPixelV]
movzx eax, word [edi]
movzx ecx, word [edi + 4]
inc dword [ebp - 0x28]
inc dword [ebp - 0x24]
add eax, ecx
cmp dword [ebp - 0x24], eax
jl 0x41e210
movzx eax, word [edi + 2]
movzx ecx, word [edi + 6]
inc dword [ebp - 0x20]
add eax, ecx
cmp dword [ebp - 0x20], eax
jl 0x41e1e7
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.004160d3
push dword [ebp - 0x54]
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x3c]
or dword [ebp - 4], 0xffffffff
call fcn.004378a4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4