Function at 0x41e3f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
cmp dword [ecx], 0xffffffff
je 0x41e7c1
mov esi, ecx
push 0x4c3ea9b9
push dword [0x4484c0]
call fcn.0043d2a0
add esp, 8
lea ecx, [esp + 0x28]
push 8
push 2
push ecx
push dword [esi]
call eax
test eax, eax
jle 0x41e53c
cmp eax, 1
jne 0x41e45c
lea edi, [esp + 0x29]
push 0x4c3ea9b9
push dword [0x4484c0]
call fcn.0043d2a0
add esp, 8
push 8
push 1
push edi
push dword [esi]
call eax
test eax, eax
jle 0x41e53c
movzx eax, byte [esp + 0x29]
mov ecx, eax
and ecx, 0x7f
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0
xor edi, edi
cmp ecx, 0x7f
mov dword [esp + 0x1c], esi
je 0x41e580
cmp ecx, 0x7e
jne 0x41e5eb
mov word [esp + 8], 0
push 0x4c3ea9b9
push dword [0x4484c0]
call fcn.0043d2a0
add esp, 8
lea ecx, [esp + 8]
push 8
push 2
push ecx
push dword [esi]
call eax
test eax, eax
jle 0x41e4e2
mov dl, 1
cmp eax, 1
jne 0x41e51f
lea edi, [esp + 9]
push 0x4c3ea9b9
push dword [0x4484c0]
call fcn.0043d2a0
add esp, 8
push 8
push 1
push edi
push dword [esi]
call eax
mov dl, 1
test eax, eax
jg 0x41e51f
cmp dword [esi], 0xffffffff
je 0x41e51d
push 0x4f80c377
push dword [0x4484c0]
call fcn.0043d2a0
add esp, 8
push 2
push dword [esi]
call eax
push 0xa2994af6
push dword [0x4484c0]
call fcn.0043d2a0
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
xor edx, edx
movzx eax, word [esp + 8]
rol ax, 8
movzx eax, ax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
jmp 0x41e642
cmp dword [esi], 0xffffffff
je 0x41e7c1
push 0x4f80c377
push dword [0x4484c0]
call fcn.0043d2a0
add esp, 8
push 2
push dword [esi]
call eax
push 0xa2994af6
push dword [0x4484c0]
call fcn.0043d2a0
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
jmp 0x41e7c1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [esp + ebx]
add eax, 8
mov dword [esp + 4], eax
mov esi, 8
sub esi, ebx
push 0x4c3ea9b9
push dword [0x4484c0]
call fcn.0043d2a0
add esp, 8
push 8
push esi
mov esi, dword [esp + 0x24]
push dword [esp + 0xc]
push dword [esi]
call eax
test eax, eax
setg dl
jle 0x41e5ef
add ebx, eax
adc edi, 0
cmp ebx, 8
mov eax, edi
sbb eax, 0
jb 0x41e5a0
jmp 0x41e62e
xor edx, edx
jmp 0x41e647
cmp dword [esi], 0xffffffff
je 0x41e62e
push 0x4f80c377
push dword [0x4484c0]
mov edi, edx
call fcn.0043d2a0
add esp, 8
push 2
push dword [esi]
call eax
push 0xa2994af6
push dword [0x4484c0]
call fcn.0043d2a0
add esp, 8
push dword [esi]
call eax
mov edx, edi
mov dword [esi], 0xffffffff
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
bswap ecx
bswap eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
movzx eax, byte [esp + 0x29]
xor ecx, ecx
test al, al
jns 0x41e6b8
mov dword [esp + 0x18], edx
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, ecx
lea eax, [esp + 0x38]
add eax, ebx
mov dword [esp + 4], eax
mov edi, 4
sub edi, ebx
push 0x4c3ea9b9
push dword [0x4484c0]
call fcn.0043d2a0
add esp, 8
push 8
push edi
push dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
mov edi, ecx
push dword [ecx]
call eax
test eax, eax
jle 0x41e776
add ebx, eax
mov ecx, esi
adc ecx, 0
cmp ebx, 4
mov eax, ecx
sbb eax, 0
jb 0x41e660
mov cl, 1
mov edx, dword [esp + 0x18]
mov esi, edi
test dl, dl
je 0x41e7c1
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
push edi
mov ebx, ecx
call fcn.00408c90
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
lea edx, [esp + 0x20]
mov ecx, esi
push edx
push dword [esp + 8]
push edi
push eax
call fcn.0041fb10
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
xor eax, edx
mov esi, dword [esp + 0x30]
xor esi, ecx
or esi, eax
sete al
or ecx, edx
setne cl
and bl, cl
cmp bl, 1
jne 0x41e752
xor ecx, ecx
xor edx, edx
nop
nop
nop
nop
nop
nop
mov esi, dword [esp + 0x3c]
mov edi, ecx
and edi, 3
mov ah, byte [esp + edi + 0x38]
xor byte [esi + ecx], ah
add ecx, 1
adc edx, 0
cmp ecx, dword [esp + 0x20]
mov esi, edx
sbb esi, dword [esp + 0x24]
jb 0x41e730
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 4]
and bl, al
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 4], 0
lea edx, [esp + 0x28]
lea eax, [esp + 8]
je 0x41e7cf
push edx
push eax
call fcn.0041fd80
jmp 0x41e7d6
mov esi, edi
cmp dword [edi], 0xffffffff
je 0x41e7b3
push 0x4f80c377
push dword [0x4484c0]
call fcn.0043d2a0
add esp, 8
push 2
push dword [esi]
call eax
push 0xa2994af6
push dword [0x4484c0]
call fcn.0043d2a0
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
xor ecx, ecx
mov edx, dword [esp + 0x18]
test dl, dl
jne 0x41e6c0
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
push edx
push eax
call fcn.0041fc00
mov eax, dword [esp + 0x14]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 8], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [edi + 4], ecx
mov dword [edi], eax
jmp 0x41e7c3