Function at 0x41f420
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0x494a4b4c
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x41f47e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
add eax, 0xc315bc3b
xor eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
add al, 0x88
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 4
jb 0x41f450
mov eax, dword [esp + 4]
mov ecx, dword [0x44a91c]
test ecx, ecx
je 0x41f4de
xor edx, edx
mov esi, dword [0x44a920]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xcecd21fd
je 0x41f4ba
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
cmp edx, ecx
jb 0x41f4a0
jmp 0x41f4de
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x41f4de
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 5
push 4
push dword [0x44a924]
push ecx
call fcn.0043d1c0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x41f580
push dword [esp + 0x14]
call fcn.0043b3d0
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], 0x494a4b4c
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x41f54e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 4]
add eax, 0xc315bc3b
xor eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
add al, 0x88
mov edx, dword [esp]
mov byte [esp + edx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 4
jb 0x41f520
mov eax, dword [esp + 4]
mov edx, dword [0x44a91c]
test edx, edx
je 0x41f5a9
xor esi, esi
mov edi, dword [0x44a920]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xcecd21fd
je 0x41f587
inc esi
cmp edx, esi
jne 0x41f570
jmp 0x41f5a9
xor ebx, ebx
jmp 0x41f849
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x41f5a9
push 0
push ecx
push dword [esp + 0x14]
push 5
push 4
push dword [0x44a924]
push edx
call fcn.0043d1c0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x41f83d
mov edx, dword [esp + 0xc]
mov ebp, dword [edx]
xor eax, eax
mov ecx, ebp
nop
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add ebx, 0x104
mov edx, esi
test ecx, ecx
jne 0x41f5c0
test ebx, ebx
jns 0x41f5e0
mov eax, 0xffffffff
push eax
call fcn.00409620
add esp, 4
mov edi, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
jmp 0x41f612
mov esi, edi
add eax, ebp
lea edi, [esi + 2]
mov word [esi], 0xa
mov ebp, dword [eax]
test ebp, ebp
je 0x41f643
mov ecx, dword [eax + ebp + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x41f600
add ecx, 2
mov esi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], dx
add esi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41f630
jmp 0x41f602
xor ebx, ebx
mov eax, dword [esp + 8]
cmp edi, eax
je 0x41f834
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x41f6a4
xor ebx, ebx
mov eax, dword [esp + 8]
jmp 0x41f67e
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x41f6a4
cmp eax, edi
jae 0x41f6a4
movzx ebp, cx
cmp ebp, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp ebp, 0x80
jb 0x41f670
mov edx, ecx
jmp 0x41f670
lea eax, [ebx + 1]
mov dword [esp + 0x18], eax
push eax
call fcn.00409620
add esp, 4
mov edx, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x41f7a5
mov edx, dword [esp + 0x10]
cmp dword [esp + 8], edi
jae 0x41f7a5
mov edx, dword [esp + 0x10]
lea eax, [edx + ebx]
mov dword [esp + 0x34], eax
add dword [esp + 0x18], edx
mov edi, dword [esp + 8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [edi]
test cx, cx
je 0x41f7a5
cmp cx, 0x7f
ja 0x41f710
mov byte [edx], cl
mov ebp, 1
jmp 0x41f790
mov eax, edx
not eax
add eax, dword [esp + 0x18]
movzx ebp, cx
cmp eax, 2
jb 0x41f750
cmp ebp, 0x7ff
ja 0x41f750
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [edx], al
mov eax, ecx
xor eax, 0xc0
or ecx, 0x3f
and ecx, eax
add cl, 0x80
mov byte [edx + 1], cl
mov ebp, 2
jmp 0x41f790
mov dword [esp + 0x30], ebp
xor ebp, ebp
cmp eax, 3
jb 0x41f790
mov ebp, dword [esp + 0x30]
mov eax, ebp
shr eax, 0xc
or al, 0xe0
mov byte [edx], al
mov eax, ebp
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [edx + 1], al
and cl, 0x3f
or cl, 0x80
mov byte [edx + 2], cl
mov ebp, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add edx, ebp
cmp edx, dword [esp + 0x34]
jae 0x41f7a5
lea eax, [edi + 2]
cmp edi, esi
mov edi, eax
jb 0x41f6f0
mov byte [edx], 0
mov dword [esp + 0x1c], 0x271c1839
mov dword [esp + 0x20], 0x1d141518
mov dword [esp + 0x24], 0x740fd412
mov word [esp + 0x28], 0xfe71
mov dword [esp + 0x2a], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x11
ja 0x41f811
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x1c]
add eax, 0xe1905e35
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0x44
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x1c], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x12
jb 0x41f7e0
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
push ebx
mov esi, dword [esp + 0x14]
push esi
push eax
call fcn.00409fb0
mov ebx, eax
push esi
call fcn.00409630
add esp, 4
mov eax, dword [esp + 8]
push eax
call fcn.00409630
add esp, 4
push dword [esp + 0xc]
call fcn.0043b460
add esp, 4
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret