Function at 0x10043390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100a900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov edi, dword [eax + 4]
mov dword [ebp - 0x34], esi
test edi, edi
jns 0x100433f6
cmp dword [eax], 0
jg 0x100433f6
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
push dword [ebx + 8]
lea edx, [ecx + edx*2]
call fcn.1002b760
add esp, 4
mov dword [esi], edx
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007491a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
lea edx, [ecx + eax*2]
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0x2c], edx
push eax
mov dword [ebp - 0x14], edx
call fcn.10005c30
mov dword [ebp - 0x10], eax
add esp, 4
mov eax, dword [ebp - 0x18]
xor esi, esi
mov byte [ebp - 8], 0
cmp eax, dword [ebp - 0x14]
je 0x1004349b
nop word [eax + eax]
mov dword [ebp - 0x28], esi
cmp esi, edi
jne 0x1004344b
test edi, edi
jns 0x1004349b
mov edx, dword [ebp - 0xc]
mov ecx, 1
mov eax, 0x1009c118
cmp edx, dword [eax]
jb 0x1004346e
add eax, 4
xor ecx, 3
cmp eax, str.Unmatched__in_format_string.
jne 0x10043458
mov ecx, 1
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, esi
jl 0x1004354f
add esi, ecx
cmp esi, edi
jle 0x1004348b
test edi, edi
jns 0x10043547
lea ecx, [ebp - 0x18]
call fcn.1004b510
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jne 0x10043440
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebx + 0x10]
xor edi, edi
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov al, byte [edx + 9]
test al, al
movzx edx, al
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], 1
cmove edx, dword [ebp - 0x24]
mov dword [ebp - 0x24], edx
mov edx, dword [eax]
mov dword [ebp - 0x28], edi
cmp esi, edx
jge 0x10043507
mov eax, dword [ebp - 0x24]
movzx eax, al
sub eax, 1
je 0x1004356a
sub eax, 1
je 0x10043561
sub eax, 1
jne 0x10043507
mov eax, edx
sub eax, esi
cdq
sub eax, edx
mov edx, dword [ebp - 0x1c]
sar eax, 1
mov dword [ebp - 0x20], eax
mov edi, dword [edx]
sub edi, eax
sub edi, esi
mov dword [ebp - 0x28], edi
mov esi, dword [ebp - 0x1c]
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], eax
movzx eax, byte [esi + 0xe]
mov esi, dword [ebp - 0x20]
test esi, esi
jle 0x1004357b
mov edi, dword [ebp - 0x1c]
add eax, eax
mov dword [ebp - 0x20], eax
add eax, edi
mov dword [ebp - 0x24], eax
push ecx
mov edx, eax
mov ecx, edi
call fcn.1002b760
mov eax, dword [ebp - 0x24]
dec esi
add esp, 4
mov ecx, edx
test esi, esi
jg 0x10043528
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
jmp 0x1004357e
mov esi, dword [ebp - 0x28]
jmp 0x1004349b
test edi, edi
jns 0x1004349b
mov esi, 0x7fffffff
jmp 0x100434a1
mov eax, edx
sub eax, esi
mov dword [ebp - 0x20], eax
jmp 0x10043507
mov edi, edx
mov edx, dword [ebp - 0x1c]
sub edi, esi
lea eax, [edx + 0x10]
mov dword [ebp - 0x1c], eax
movzx eax, byte [edx + 0xe]
lea esi, [eax + eax]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
sub edx, eax
sar edx, 1
push ecx
mov ecx, eax
lea edx, [eax + edx*2]
call fcn.1002b760
add esp, 4
test edi, edi
jle 0x100435b5
mov eax, dword [ebp - 0x1c]
add esi, eax
nop
push edx
mov edx, esi
mov ecx, eax
call fcn.1002b760
mov eax, dword [ebp - 0x1c]
dec edi
add esp, 4
test edi, edi
jg 0x100435a0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], edx
pop esi
call fcn.1007491a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret