Function at 0x41e190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xbab9b8b7
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x2c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x41e209
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
mov edx, 0xe8
sub edx, eax
add eax, 0x5759de17
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0x5f
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x41e1d0
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4412dc]
test ecx, ecx
je 0x41e254
xor edx, edx
mov esi, dword [0x4412e0]
nop
cmp dword [esi + edx*8], 0x10def2fc
je 0x41e230
inc edx
cmp ecx, edx
jne 0x41e220
jmp 0x41e254
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x41e254
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 5
push 4
push dword [0x4412e4]
push ecx
call fcn.004337a0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x41e312
push dword [esp + 0x1c]
call fcn.00431ab0
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0xbab9b8b7
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x2c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x41e2d9
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x20]
mov esi, 0xe8
sub esi, eax
add eax, 0x5759de17
xor esi, eax
and esi, edx
xor esi, eax
mov dword [esp + 8], esi
mov eax, dword [esp + 8]
add al, 0x5f
mov edx, dword [esp]
mov byte [esp + edx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x41e2a0
mov eax, dword [esp + 0x20]
mov edx, dword [0x4412dc]
test edx, edx
je 0x41e33a
mov ebx, edi
xor esi, esi
mov edi, dword [0x4412e0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0x10def2fc
je 0x41e319
inc esi
cmp edx, esi
jne 0x41e300
mov edi, ebx
jmp 0x41e33a
xor ebx, ebx
jmp 0x41e61a
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x41e33a
push 0
push ecx
push edi
push 5
push 4
push dword [0x4412e4]
push edx
call fcn.004337a0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x41e611
mov edx, edi
xor edi, edi
mov ebx, dword [edx]
xor eax, eax
mov ecx, ebx
mov dword [esp + 0x10], edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add edi, 0x104
mov edx, esi
test ecx, ecx
jne 0x41e360
test edi, edi
jns 0x41e380
mov eax, 0xffffffff
push eax
call fcn.00409030
add esp, 4
mov dword [esp + 4], eax
mov esi, eax
mov eax, dword [esp + 0x10]
jmp 0x41e3b2
mov edi, esi
add eax, ebx
lea esi, [edi + 2]
mov word [edi], 0xa
mov ebx, dword [eax]
test ebx, ebx
je 0x41e3e3
mov ecx, dword [eax + ebx + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x41e3a0
add ecx, 2
mov edi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41e3d0
jmp 0x41e3a2
xor ebx, ebx
mov eax, dword [esp + 4]
cmp esi, eax
je 0x41e604
mov word [esi], 0
movzx ecx, word [eax]
test cx, cx
je 0x41e44c
xor ebx, ebx
mov eax, dword [esp + 4]
jmp 0x41e422
mov ebx, dword [esp + 0x18]
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x41e44c
cmp eax, esi
jae 0x41e44c
mov dword [esp + 0x18], ebx
movzx ebx, cx
cmp ebx, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp ebx, 0x80
jb 0x41e410
mov edx, ecx
jmp 0x41e410
mov eax, ebx
and eax, 1
mov dword [esp + 0x18], ebx
xor ebx, 1
lea ebx, [ebx + eax*2]
push ebx
call fcn.00409030
add esp, 4
lea ecx, [eax + ebx]
dec ecx
mov edx, eax
mov dword [esp + 0xc], eax
cmp eax, ecx
jae 0x41e553
mov edx, dword [esp + 0xc]
cmp dword [esp + 4], esi
jae 0x41e553
mov edx, dword [esp + 0xc]
mov eax, edx
add eax, ebx
mov dword [esp + 0x40], eax
mov esi, dword [esp + 4]
mov dword [esp + 0x14], ecx
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, word [esi]
test bx, bx
je 0x41e553
cmp bx, 0x7f
ja 0x41e4c0
mov byte [edx], bl
mov eax, 1
jmp 0x41e540
mov ecx, edx
not ecx
add ecx, dword [esp + 0x40]
movzx eax, bx
cmp ecx, 2
jb 0x41e500
cmp eax, 0x7ff
ja 0x41e500
mov eax, ebx
shr eax, 6
add al, 0xc0
mov byte [edx], al
and bl, 0x3f
or bl, 0x80
mov byte [edx + 1], bl
mov eax, 2
mov ecx, dword [esp + 0x14]
jmp 0x41e540
mov dword [esp + 0x3c], eax
xor eax, eax
cmp ecx, 3
mov ecx, dword [esp + 0x14]
jb 0x41e540
mov ecx, dword [esp + 0x3c]
mov eax, ecx
shr eax, 0xc
or al, 0xe0
mov byte [edx], al
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [edx + 1], cl
mov ecx, dword [esp + 0x14]
mov eax, ebx
not eax
or eax, 0x3f
add eax, ebx
add al, 0x81
mov byte [edx + 2], al
mov eax, 3
nop
add edx, eax
cmp edx, ecx
jae 0x41e553
lea eax, [esi + 2]
cmp esi, edi
mov esi, eax
jb 0x41e4a0
mov byte [edx], 0
mov dword [esp + 0x20], 0x100d03e0
mov dword [esp + 0x24], 0x12050611
mov dword [esp + 0x28], 0x33ef73b
mov word [esp + 0x2c], 0x8d38
mov dword [esp + 0x32], 0
mov dword [esp + 0x2e], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x15
ja 0x41e5d9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
mov edx, 0xe7
sub edx, eax
add eax, 0xaa32aa18
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0x58
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x16
jb 0x41e5a0
lea eax, [esp + 0x20]
mov ecx, dword [ebp + 8]
push dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push esi
push eax
call fcn.00409d20
mov ebx, eax
push esi
call fcn.00409040
add esp, 4
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 4]
jmp 0x41e608
mov edi, dword [esp + 0x10]
push eax
call fcn.00409040
add esp, 4
push edi
call fcn.00431b40
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret