Function at 0x41e1f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x158
mov edi, edx
mov ebx, ecx
call fcn.004048c0
mov dword [esp + 0x28], eax
push eax
call fcn.00404520
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edi
mov edi, dword [edi + 0x3c]
lea esi, [esp + 0x30]
push 0x120
push 0
push esi
call fcn.0040c900
add esp, 0xc
mov dword [esp + 0x20], ebx
mov ecx, ebx
push 0
push 0
push 0x120
push esi
push edi
push dword [esp + 0x30]
call fcn.0043cce0
test eax, eax
js 0x41e6c0
mov dword [esp + 8], 0xc2b9ccb6
mov byte [esp + 0xc], 0x28
mov word [esp + 0xd], 0
mov byte [esp + 0xf], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x41e2d6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0x33526ff7
and eax, 0x33526ff7
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov ecx, eax
not ecx
and ecx, 0xd3
and eax, 0x2c
sub eax, ecx
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x41e290
lea edx, [esp + 0x38]
lea eax, [esp + 8]
mov esi, dword [esp + 0x20]
mov ecx, esi
push dword [esp + 0x18]
push eax
call fcn.0041e770
add esp, 8
mov ebx, eax
mov dword [esp + 8], 0xb6be40b6
mov word [esp + 0xc], 0x2541
mov dword [esp + 0xe], 0
mov word [esp + 0x12], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x41e359
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0x3a527538
and eax, 0x3a527538
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xe8
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x41e320
lea edx, [esp + 0x118]
mov ecx, esi
push dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
call fcn.0041e770
add esp, 8
movzx eax, al
movzx ecx, bl
not ecx
or eax, ecx
mov dword [esp + 8], 0x3b393a30
mov dword [esp + 0xc], 0xa27322f
mov byte [esp + 0x10], 0x80
mov dword [esp + 0x11], 0
mov byte [esp + 0x15], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 0xd
ja 0x41e412
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 8]
mov edi, edx
not edi
or edi, 0x75cefca2
add edi, edx
xor edx, 0x75cefca2
lea ebx, [edx + edi*2]
lea edx, [edx + edi*2]
add edx, 2
lea edi, [esi + ebx]
add edi, 2
and edx, esi
mov esi, edi
not esi
and esi, edx
add esi, edx
not edx
and edx, edi
sub edx, esi
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
mov esi, edx
xor esi, 0x2a
and edx, 0x55
add edx, edx
sub edx, esi
mov esi, dword [esp]
mov byte [esp + esi + 8], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 0xe
jb 0x41e3b0
cmp eax, ecx
setne bl
lea edx, [esp + 0x50]
mov edi, dword [esp + 0x20]
mov ecx, edi
push dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
call fcn.0041e770
add esp, 8
mov byte [esp + 0x1c], al
mov dword [esp + 8], 0xd91aec1c
mov byte [esp + 0xc], 0xb0
mov dword [esp + 0xd], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x41e4b7
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
not edx
or edx, 0x5438a1d
add edx, eax
xor eax, 0x85438a1d
lea esi, [eax + edx*2]
lea eax, [eax + edx*2]
add eax, 2
lea edx, [ecx + esi]
add edx, 2
and eax, ecx
mov ecx, edx
not ecx
and ecx, eax
add ecx, eax
not eax
and eax, edx
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x6f
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x41e460
lea edx, [esp + 0x68]
mov ecx, edi
push dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
call fcn.0041e770
add esp, 8
mov byte [esp + 0x24], al
fild qword [esp + 0x130]
mov dword [esp + 8], 0xaad2d9a5
mov dword [esp + 0xc], 0xb8d5a0d6
mov dword [esp + 0x10], 0x4ba9dddd
mov dword [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x41e55a
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0x373b2e90
and eax, 0x373b2e90
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
and eax, ecx
mov ecx, edx
not ecx
and ecx, eax
add ecx, eax
not eax
and eax, edx
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x30
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x41e510
and bl, byte [esp + 0x1c]
sub esp, 0x10
fstp qword [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00405bf0
add esp, 0x10
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x88]
mov dword [esp + 8], 0xa8bdaeb1
mov dword [esp + 0xc], 0xd5d7bab9
mov dword [esp + 0x10], 0x61c5
mov byte [esp + 0x14], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xc
ja 0x41e603
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov esi, edx
xor esi, 0x334d1f3a
add edx, edx
and edx, 0x669a3e74
mov edi, edx
and edi, esi
xor edx, esi
lea edx, [edx + edi*2]
xor edx, ecx
mov dword [esp + 4], edx
mov ecx, dword [esp + 4]
add cl, 0xde
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0xd
jb 0x41e5c0
and bl, byte [esp + 0x24]
push eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
call fcn.00405c80
add esp, 0xc
mov esi, eax
movzx eax, byte [esp + 0x88]
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0x272a15e0
mov dword [esp + 0xc], 0x272026d7
mov dword [esp + 0x10], 0xb129
mov byte [esp + 0x14], 0
or esi, dword [esp + 0x1c]
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xc
ja 0x41e6a2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edi, edx
xor edi, 0x66f0ec9e
add edx, edx
and edx, 0xcde1d93c
mov eax, edx
and eax, edi
xor edx, edi
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xea
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x41e660
push dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
call fcn.00405c80
add esp, 0xc
or esi, eax
sete al
and bl, al
jmp 0x41e6c2
xor ebx, ebx
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, eax
or ecx, edx
je 0x41e700
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x3c]
push esi
push edx
push eax
call fcn.0043cce0
test eax, eax
js 0x41e700
lea edx, [esp + 0x30]
mov ecx, edi
push dword [ebp + 8]
call fcn.0041e1f0
add esp, 4
or bl, al
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, eax
or ecx, edx
je 0x41e73b
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x3c]
push esi
push edx
push eax
call fcn.0043cce0
test eax, eax
js 0x41e73b
lea edx, [esp + 0x30]
mov ecx, edi
push dword [ebp + 8]
call fcn.0041e1f0
add esp, 4
or bl, al
test bl, bl
je 0x41e750
push dword [esp + 0x28]
push dword [ebp + 8]
call fcn.004055a0
add esp, 8
jmp 0x41e75c
push dword [esp + 0x28]
call fcn.00404790
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret