Function at 0x475a7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
xor edx, edx
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
or eax, 0xffffffff
push esi
mov esi, dword [ebp + 0x10]
mov word [ebp - 0xa], dx
mov edx, dword [ebx + 4]
push edi
mov dword [ebp - 0x24], 0x485a84
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0xc], ax
mov eax, dword [esi]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], ecx
mov edi, 1
mov dword [ebp - 0x30], edi
mov edx, dword [edx + eax*4]
movsx edx, word [edx + 0xa]
inc eax
mov dword [esi], eax
mov dword [ebp - 8], edx
mov edx, dword [ebx + 4]
mov edx, dword [edx + eax*4]
cmp word [edx + 8], 0x47
mov dword [ebp - 4], ecx
jne 0x475afc
inc eax
mov dword [esi], eax
mov dword [ebp + 0xc], ecx
mov edx, dword [ebx + 4]
mov eax, dword [esi]
mov eax, dword [edx + eax*4]
movsx edx, word [eax + 8]
sub edx, 0x47
je 0x475b41
sub edx, edi
je 0x475b37
sub edx, 0x37
jne 0x475b44
mov eax, dword [esi]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + eax*4 - 4]
movsx eax, word [edx + 0xa]
mov ecx, dword [ebp + 8]
push eax
push 0x6f
push ecx
call fcn.0045e74c
lea esi, [ebp - 0x38]
call fcn.00408f55
lea edx, [ebp - 0x14]
push edx
call fcn.0044b47e
lea ecx, [ebp - 0x24]
call fcn.0040edd5
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], ecx
je 0x475b57
sub dword [ebp + 0xc], edi
jmp 0x475b44
add dword [ebp + 0xc], edi
lea edi, [ebp - 0x24]
call fcn.00402795
inc dword [esi]
mov edi, 1
xor ecx, ecx
jmp 0x475ae0
add dword [esi], edi
mov cx, word [ebp - 8]
mov eax, 0xff187f
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x24]
mov word [ebp - 0xa], cx
call fcn.00402795
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp + 0x10], eax
mov edx, dword [ecx]
cmp word [edx + 8], 0x7f
je 0x475c91
mov edi, edi
mov eax, dword [ecx + eax*4]
cmp word [eax + 8], 0x33
jne 0x1465c3a
mov esi, dword [eax]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp + 0xc]
push edx
xor ecx, ecx
call fcn.0040c2d5
test al, al
je 0xff5fc43a
test dword [ebp - 4], 0x168
jne 0x475c3a
mov edi, dword [ebp + 0xc]
cmp dword [edi + 8], 8
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
jne 0x475bd6
mov edx, dword [ecx + eax*4 + 4]
cmp word [edx + 8], 0x35
je 0x475c3a
mov ebx, eax
inc eax
mov dword [ebp + 0x10], eax
cmp dword [edi + 8], 5
jne 0x475c0c
mov eax, dword [ecx + eax*4]
cmp word [eax + 8], 0x4e
jne 0x475c0c
mov edx, dword [ebp + 8]
push 1
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x24]
call fcn.0040c4f5
test eax, eax
jne 0x475cb5
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x38]
call fcn.00408f55
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x30], 6
mov dword [ebp - 0x38], edi
mov edx, dword [eax + ecx*4]
movzx eax, word [edx + 8]
cmp ax, 0x40
je 0x475c58
cmp ax, 0x7f
je 0x475c58
mov dword [ebp + 0x10], ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x24]
push edx
call fcn.0040a795
test eax, eax
jne 0x14674dc
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x38]
push eax
call fcn.0040ba25
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx + eax*4]
cmp word [edx + 8], 0x40
jne 0x475c83
mov edx, dword [ecx + eax*4 + 4]
cmp word [edx + 8], 0x7f
je 0x475cea
inc eax
mov dword [ebp + 0x10], eax
mov edx, dword [ecx + eax*4]
cmp word [edx + 8], 0x7f
jne 0x475b8c
lea esi, [ebp - 0x38]
call fcn.00408f55
lea eax, [ebp - 0x14]
push eax
call fcn.0044b47e
lea ecx, [ebp - 0x24]
call fcn.0040edd5
xor eax, eax
pop edi
pop esi
pop ebx
xor bh, cl
dec dword [ebp - 0x17af13bb]
fcom qword [edi - 3]
dec dword [ebp + 0x2be8dc4d]
xchg ecx, eax
stc
push dword [ebx]
rcr byte [edi + 0x5e], 0x5b
jne 0x475c96
pop ebp
ret 0x10
lea esi, [ebp - 0x38]
call fcn.00408f55
lea eax, [ebp - 0x14]
push eax
call fcn.0044b47e
lea ecx, [ebp - 0x24]
call fcn.0040edd5
pop edi
pop esi
mov eax, 0xff1801
pop ebx
jne 0x475cbd
pop ebp
ret 0x10
mov edx, dword [ecx + eax*4]
movsx eax, word [edx + 0xa]
mov ecx, dword [ebp + 8]
push eax
push 0x6e
push ecx
call fcn.0045e74c
lea esi, [ebp - 0x38]
call fcn.00408f55
lea edx, [ebp - 0x14]
push edx
jmp 0x475cc1