Function at 0x43e658
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
cmp dword [0x4ddd98], 0
push ebx
push esi
push edi
je 0x43e6ac
push 0xd8
push 0x4ddde8
push 0x13
push 5
call fcn.00415c9c
add esp, 0x10
call fcn.00415c84
cmp eax, dword [0x4ddd9c]
sete al
and eax, 1
mov dword [ebp - 0x10], eax
push 0xda
push 0x4dde00
push 0x13
push 6
call fcn.00415c9c
add esp, 0x10
jmp 0x43e6b1
xor edx, edx
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x43e6cd
push 0xdf
push 0x4dde18
push 0x12
push 9
call fcn.00415c9c
add esp, 0x10
mov ebx, dword [0x4ddd80]
mov eax, dword [0x4ddd84]
mov dword [ebp - 0xc], eax
mov edx, dword [0x4ddd88]
mov dword [ebp - 8], edx
push 0x14
push 0x4f2243
lea ecx, [ebp - 0x24]
push ecx
call fcn.00408598
add esp, 0xc
mov eax, dword [ebp + 0xc]
add dword [0x4ddd80], eax
cmp dword [0x4ddd80], 0x3ff
jl 0x43e72b
mov ecx, 0x3ff
mov eax, dword [0x4ddd80]
cdq
idiv ecx
mov dword [0x4ddd80], edx
mov dword [0x4ddd7c], 0x3ff
jmp 0x43e747
mov eax, dword [0x4ddd7c]
cmp eax, 0x3ff
jge 0x43e747
mov edx, dword [0x4ddd80]
cmp eax, edx
jge 0x43e747
mov dword [0x4ddd7c], edx
mov eax, dword [ebp + 0xc]
mov ecx, 0x14
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov esi, 0x14
cdq
idiv esi
test edx, edx
setg al
and eax, 1
add ecx, eax
add dword [0x4ddd88], ecx
cmp dword [ebp - 0x10], 0
jne 0x43e78b
push 0xff
push 0x4dde30
push 0x12
push 0xa
call fcn.00415c9c
add esp, 0x10
lea edx, [ebp - 0x34]
push edx
call fcn.00441b2c
pop ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jge 0x43e89c
mov edi, dword [ebp + 0xc]
sub edi, dword [ebp - 4]
cmp edi, 0x14
jle 0x43e7b8
mov eax, 0x14
jmp 0x43e7ba
mov eax, edi
mov edi, eax
push 0
call fcn.00441fd0
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.00441b84
add esp, 0xc
push 0x14
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x34]
push eax
call fcn.00441cc0
add esp, 0xc
lea esi, [edi + ebx - 0x3ff]
test esi, esi
jle 0x43e81a
mov eax, edi
mov edx, 0x4f1e30
sub eax, esi
add edx, ebx
push eax
push edx
lea ecx, [ebp - 0x34]
push ecx
call fcn.00441cc0
add esp, 0xc
lea eax, [ebp - 0x34]
push esi
push 0x4f1e30
push eax
call fcn.00441cc0
add esp, 0xc
jmp 0x43e82f
push edi
mov edx, 0x4f1e30
add edx, ebx
push edx
lea ecx, [ebp - 0x34]
push ecx
call fcn.00441cc0
add esp, 0xc
push edi
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.00441cc0
add esp, 0xc
push 8
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x34]
push eax
call fcn.00441cc0
add esp, 0xc
push 0
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x34]
push ecx
call fcn.00441d04
add esp, 0xc
inc dword [ebp - 8]
add dword [ebp + 8], edi
xor esi, esi
lea eax, [ebp - 0x24]
cmp edi, esi
jle 0x43e88c
mov dl, byte [eax]
xor byte [ebx + 0x4f1e30], dl
inc ebx
cmp ebx, 0x3ff
jl 0x43e886
xor ebx, ebx
inc esi
inc eax
cmp edi, esi
jg 0x43e873
add dword [ebp - 4], 0x14
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jl 0x43e7a6
lea edx, [ebp - 0x34]
push edx
call fcn.00441f10
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x43e8c2
push 0x12a
push 0x4dde48
push 0x12
push 9
call fcn.00415c9c
add esp, 0x10
xor esi, esi
mov edx, 0x4f2243
lea eax, [ebp - 0x24]
mov cl, byte [eax]
xor byte [edx], cl
inc esi
inc edx
inc eax
cmp esi, 0x14
jl 0x43e8cc
fld qword [0x4ddd8c]
fcomp dword [0x43e91c]
fnstsw ax
sahf
jae 0x43e8f8
fld qword [ebp + 0x10]
fadd qword [0x4ddd8c]
fstp qword [0x4ddd8c]
cmp dword [ebp - 0x10], 0
jne 0x43e914
push 0x135
push 0x4dde60
push 0x12
push 0xa
call fcn.00415c9c
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret