Function at 0x11119650
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x111eb774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
movzx ebx, word [edi + 4]
test bl, 8
je 0x11119687
push 0x2167
push str...ctl32Remote.cpp
push str._bitcount__GSB_OPT_PLANAR___0
call fcn.11029450
add esp, 0xc
test bl, 2
je 0x11119698
mov dword [ebp - 0x408], 0x10
jmp 0x111196b0
mov eax, 0
test bl, 1
setne al
lea eax, [eax*4 + 4]
mov dword [ebp - 0x408], eax
movzx ecx, word [edi + 6]
movzx eax, word [edi + 0xa]
movzx edx, word [edi + 8]
mov dword [ebp - 0x440], eax
sub eax, ecx
mov ebx, eax
mov eax, dword [ebp - 0x408]
mov dword [ebp - 0x448], ecx
movzx ecx, word [edi + 0xc]
sub ecx, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
imul eax, ebx
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x424], eax
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0x40c], eax
mov eax, 0x4000
cdq
idiv dword [ebp - 0x424]
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x42c], ecx
mov ebx, eax
mov dword [ebp - 0x418], ebx
cmp ebx, ecx
jle 0x11119728
mov dword [ebp - 0x418], ecx
mov ebx, ecx
mov eax, ebx
imul eax, dword [ebp - 0x40c]
push eax
mov dword [ebp - 0x410], eax
call fcn.11162b51
mov ecx, dword [esi + 0x22c]
add esp, 4
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x41c]
push ebx
push eax
push ecx
call dword [0x111931f0]
mov dword [ebp - 0x434], eax
test eax, eax
jne 0x111197aa
call dword [0x11193528]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x22c]
push eax
mov eax, dword [ebp - 0x41c]
push edx
push ebx
push eax
push ecx
lea edx, [ebp - 0x404]
push str.Cant_create_bmp__dc_x__w_d__h_d__nclen_d__e_d_n
push edx
call dword [0x111939e0]
push 0x2183
lea eax, [ebp - 0x404]
push str...ctl32Remote.cpp
push eax
call fcn.11029450
add esp, 0x28
mov ebx, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x41c]
push ebx
push 0
push ecx
lea edx, [esi + 0x160]
push edx
call fcn.1115f6d0
mov dword [ebp - 0x430], eax
add esp, 0x10
add eax, 0x28
cmp ebx, 4
jne 0x11119801
test byte [ebp + 8], 2
mov ecx, 0x111e9b78
jne 0x111197e7
mov ecx, 0x111e9b68
mov edx, 0x10
lea esp, [esp]
movzx ebx, byte [ecx]
mov word [eax], bx
add eax, 2
inc ecx
dec edx
jne 0x111197f0
xor ebx, ebx
jmp 0x11119814
xor ebx, ebx
xor ecx, ecx
mov word [eax], cx
inc ecx
add eax, 2
cmp ecx, 0x100
jl 0x11119805
mov eax, dword [esi + 0x22c]
push eax
call dword [0x111931ec]
mov dword [ebp - 0x420], eax
cmp eax, ebx
jne 0x11119842
push 0x21b7
push str...ctl32Remote.cpp
push str.workdc
call fcn.11029450
add esp, 0xc
mov eax, dword [esi + 0xdc]
mov dword [esi + 0x3f0], ebx
mov dword [esi + 0x3ec], ebx
mov dword [esi + 0x3e8], ebx
movzx edx, word [edi + 0xc]
sub eax, edx
inc eax
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x428]
lea ecx, [edi + 0xe]
xor edi, edi
add eax, dword [ebp - 0x410]
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x408], ebx
jmp 0x111198a0
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x40c]
mov edx, dword [ebp - 0x424]
push edx
mov dword [ebp - 0x410], eax
push eax
mov eax, dword [ebp - 0x438]
mov ebx, esi
call fcn.11112950
inc edi
add esp, 8
mov dword [ebp - 0x438], eax
cmp edi, dword [ebp - 0x418]
jl 0x111198a0
mov eax, dword [ebp - 0x430]
mov ebx, dword [ebp - 0x434]
push 1
push eax
mov dword [eax + 8], edi
mov eax, dword [ebp - 0x410]
mov ecx, dword [esi + 0x22c]
push eax
push edi
push 0
push ebx
push ecx
call dword [0x111931a8]
mov edx, dword [ebp - 0x444]
mov ecx, dword [ebp - 0x420]
push ebx
lea eax, [edi + edx]
push ecx
mov dword [ebp - 0x43c], eax
call dword [0x111931f4]
cmp dword [esi + 0x1dc], 0
mov ebx, eax
je 0x11119933
mov eax, dword [esi + 0x228]
jmp 0x11119939
mov eax, dword [esi + 0x22c]
mov edx, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x41c]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [ebp - 0x444]
push edi
push ecx
mov ecx, dword [ebp - 0x448]
push edx
push ecx
push eax
call dword [0x11193218]
push ebx
mov ebx, dword [ebp - 0x420]
push ebx
call dword [0x111931f4]
cmp dword [esi + 0x1dc], 0
jne 0x1111998f
push 0
lea edx, [ebp - 0x448]
mov ecx, esi
call fcn.11113290
add esp, 4
mov eax, dword [ebp - 0x42c]
mov edx, dword [ebp - 0x43c]
sub eax, edi
mov dword [ebp - 0x444], edx
mov dword [ebp - 0x42c], eax
je 0x11119a64
cmp dword [ebp - 0x418], eax
jle 0x111199bd
mov dword [ebp - 0x418], eax
mov ebx, dword [esi + 0x3e8]
mov eax, dword [ebp - 0x44c]
xor edi, edi
mov dword [ebp - 0x410], eax
test ebx, ebx
je 0x11119a15
cmp dword [ebp - 0x414], edi
jne 0x111199f2
mov ecx, dword [ebp - 0x40c]
push ecx
call fcn.11162b51
add esp, 4
mov dword [ebp - 0x414], eax
mov edx, dword [ebp - 0x40c]
mov eax, dword [ebp - 0x414]
push edx
push ebx
push eax
call fcn.11161da0
mov ecx, dword [ebp - 0x414]
add esp, 0xc
mov dword [esi + 0x3e8], ecx
cmp dword [esi + 0x3ec], edi
je 0x111198a0
mov ebx, dword [ebp - 0x408]
test ebx, ebx
jne 0x11119a42
mov edx, dword [ebp - 0x40c]
push edx
call fcn.11162b51
add esp, 4
mov dword [ebp - 0x408], eax
mov ebx, eax
mov eax, dword [ebp - 0x40c]
push eax
mov eax, dword [esi + 0x3ec]
push eax
push ebx
call fcn.11161da0
add esp, 0xc
mov dword [esi + 0x3ec], ebx
jmp 0x111198a0
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x11119a77
push eax
call fcn.11162be5
add esp, 4
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x11119a8a
push eax
call fcn.11162be5
add esp, 4
mov ecx, dword [ebp - 0x430]
push ecx
call fcn.11162be5
add esp, 4
push ebx
call dword [0x1119321c]
mov edx, dword [ebp - 0x434]
push edx
call dword [0x11193228]
pop edi
pop ebx
test eax, eax
jne 0x11119ac7
call dword [0x11193528]
push eax
push str.Err_deleting_workbm__e_d_n
call fcn.11146450
add esp, 8
mov eax, dword [ebp - 0x428]
push eax
call fcn.11162be5
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 4
call fcn.11161d01
mov esp, ebp
pop ebp
ret