Function at 0x43da50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x58bb98]
push ebx
cdq
and edx, 7
push ebp
push esi
add eax, edx
push edi
mov edi, eax
mov eax, dword [0x58bb9c]
cdq
and edx, 7
add eax, edx
sar edi, 3
sar eax, 3
imul edi, eax
mov eax, edi
mov dword [esp + 0x10], edi
shl eax, 4
push eax
call fcn.004654e0
mov dword [esp + 0x18], eax
mov eax, dword [0x58bb98]
cdq
and edx, 7
add esp, 4
add eax, edx
xor ebp, ebp
sar eax, 3
xor ecx, ecx
test eax, eax
mov dword [esp + 0x18], ecx
jle 0x43db5b
mov ebx, dword [0x58bb9c]
mov eax, ebx
xor esi, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
test eax, eax
jle 0x43db3c
mov edx, dword [esp + 0x14]
lea edi, [ecx*8]
mov ecx, ebp
shl ecx, 4
lea ecx, [ecx + edx + 8]
lea eax, [esi*8]
mov dword [ecx - 8], eax
mov dword [ecx - 4], edi
mov eax, dword [0x58bbb0]
add ecx, 0x10
mov dl, al
sub al, 0x2c
add dl, 4
and eax, 0xff
and edx, 0xff
mov eax, dword [eax + 0x58be00]
mov dword [0x58bbb0], edx
mov ebx, dword [edx + 0x58be00]
xor ebx, eax
and eax, 0x1f
add eax, 0x20
mov dword [edx + 0x58be00], ebx
mov dword [ecx - 0x10], eax
mov ebx, dword [0x58bb9c]
mov eax, ebx
inc ebp
cdq
and edx, 7
inc esi
add eax, edx
sar eax, 3
cmp esi, eax
jl 0x43dad7
mov ecx, dword [esp + 0x18]
mov eax, dword [0x58bb98]
inc ecx
cdq
and edx, 7
mov dword [esp + 0x18], ecx
add eax, edx
sar eax, 3
cmp ecx, eax
jl 0x43dab2
mov edi, dword [esp + 0x10]
call fcn.004349c0
mov dword [esp + 0x28], 0x40
jmp 0x43db6e
mov edi, dword [esp + 0x10]
call fcn.0045d080
push 0
call fcn.00439680
add esp, 4
xor esi, esi
test edi, edi
mov dword [esp + 0x18], esi
jle 0x43dd82
mov eax, dword [esp + 0x14]
mov ecx, dword [0x58bb9c]
lea ebx, [eax + 8]
mov dword [esp + 0x24], ebx
jmp 0x43dba2
mov esi, dword [esp + 0x18]
mov eax, dword [ebx]
test eax, eax
jbe 0x43dbb1
dec eax
mov dword [ebx], eax
mov ecx, dword [0x58bb9c]
mov eax, dword [ebx]
cmp eax, 0x20
jae 0x43dbc8
cmp eax, 1
jbe 0x43dbc8
add eax, 0xfffffffe
mov dword [ebx], eax
mov ecx, dword [0x58bb9c]
mov eax, ecx
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x10]
sar eax, 3
sub edx, eax
cmp esi, edx
jge 0x43dc3e
add esi, eax
mov eax, dword [esp + 0x14]
shl esi, 4
mov edx, dword [esi + eax + 8]
lea eax, [esi + eax + 8]
test edx, edx
jne 0x43dc3e
mov ecx, dword [ebx]
inc ecx
mov dword [eax], ecx
mov dword [ebx], 0
mov eax, dword [ebx - 4]
mov ecx, dword [0x58bb9c]
imul eax, ecx
mov esi, dword [ebx - 8]
mov edx, dword [0x4a0720]
add eax, esi
mov esi, 8
add eax, edx
lea edx, [eax + ecx*8]
mov ecx, dword [eax]
mov edi, eax
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov ecx, dword [0x58bb9c]
add eax, ecx
add edx, ecx
dec esi
jne 0x43dc1e
mov esi, dword [ebx - 4]
mov edi, dword [0x4a0720]
mov eax, esi
imul esi, dword [0x58bba0]
imul eax, ecx
mov edx, dword [ebx - 8]
mov ecx, dword [0x58bb64]
add eax, edi
add eax, edx
shl edx, cl
mov ecx, dword [0x58bba4]
add ecx, esi
mov esi, dword [ebx]
add edx, ecx
test esi, esi
mov ebp, edx
jne 0x43dca7
mov edx, 8
mov ecx, dword [0x58bb68]
xor eax, eax
mov esi, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x58bba0]
add ebp, ecx
dec edx
jne 0x43dc79
mov ecx, dword [0x58bb9c]
jmp 0x43dd66
shl esi, 8
cmp esi, 0x2000
jle 0x43dcb7
mov esi, 0x2000
cmp dword [0x58bb68], 0x10
jne 0x43dd2b
mov dword [esp + 0x20], 8
mov ecx, ebp
mov dword [esp + 0x1c], 4
xor edx, edx
mov ebx, esi
mov dl, byte [eax + 1]
add ecx, 4
mov edi, edx
xor edx, edx
mov dl, byte [eax]
add edi, esi
add ebx, edx
mov edx, dword [0x521f40]
add eax, 2
mov ebx, dword [edx + ebx*4]
mov edx, dword [edx + edi*4]
shr ebx, 0x10
add edx, ebx
mov dword [ecx - 4], edx
mov edx, dword [esp + 0x1c]
dec edx
mov dword [esp + 0x1c], edx
jne 0x43dcd2
mov edi, dword [0x58bba0]
mov edx, dword [esp + 0x20]
mov ecx, dword [0x58bb9c]
add ebp, edi
dec edx
lea eax, [eax + ecx - 8]
mov dword [esp + 0x20], edx
jne 0x43dcc8
mov ebx, dword [esp + 0x24]
jmp 0x43dd66
mov dword [esp + 0x20], 8
mov ecx, dword [0x58bb68]
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x58bba0]
mov ecx, dword [0x58bb9c]
add ebp, edi
add eax, ecx
dec edx
mov dword [esp + 0x20], edx
jne 0x43dd33
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc eax
add ebx, 0x10
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebx
jl 0x43db9e
mov eax, dword [0x58bba4]
test eax, eax
je 0x43dd9f
push 0
call fcn.004396f0
add esp, 4
push 0
call fcn.00439750
add esp, 4
call fcn.0045c930
cmp dword [0x557560], eax
jne 0x43ddbe
call fcn.0045d080
call fcn.0045c930
cmp dword [0x557560], eax
je 0x43ddac
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
jne 0x43db6a
mov eax, dword [esp + 0x14]
push eax
call fcn.004654f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret