Function at 0x4752b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
call fcn.00406704
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax*4]
call fcn.004030ec
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], 0xf
xor eax, eax
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp - 0x24]
dec esi
test esi, esi
jl 0x475369
inc esi
xor edx, edx
mov eax, dword [ebp - 0x20]
lea ecx, [eax + edx*8]
fld dword [ecx]
mov eax, dword [ebp - 0xc]
fcomp dword [eax]
wait
fnstsw ax
sahf
setae bl
and ebx, 0x7f
fld dword [ecx]
mov eax, dword [ebp - 0xc]
fcomp dword [eax + 8]
wait
fnstsw ax
sahf
setbe al
and eax, 0x7f
add eax, eax
or ebx, eax
fld dword [ecx + 4]
mov eax, dword [ebp - 0xc]
fcomp dword [eax + 4]
wait
fnstsw ax
sahf
setae al
and eax, 0x7f
add eax, eax
add eax, eax
or ebx, eax
fld dword [ecx + 4]
mov eax, dword [ebp - 0xc]
fcomp dword [eax + 0xc]
wait
fnstsw ax
sahf
setbe al
and eax, 0x7f
add eax, eax
add eax, eax
add eax, eax
or ebx, eax
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov byte [ecx + edx], al
and dword [ebp - 0x28], eax
or dword [ebp - 0x2c], eax
inc edx
dec esi
jne 0x4752f6
cmp dword [ebp - 0x28], 0xf
jne 0x475385
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov ecx, dword [0x47ae1c]
call fcn.00406a1c
jmp 0x475528
cmp dword [ebp - 0x2c], 0xf
je 0x47539e
mov eax, dword [ebp - 0x18]
mov edx, dword [0x47ae1c]
call fcn.004069e0
jmp 0x475528
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
movzx ecx, byte [eax + edx - 1]
mov esi, dword [ebp - 0x24]
dec esi
test esi, esi
jl 0x4753d3
inc esi
xor edx, edx
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + edx]
xor ecx, eax
mov ecx, dword [ecx*4 + 0x4a94e0]
add dword [ebp - 0x14], ecx
mov ecx, eax
inc edx
dec esi
jne 0x4753ba
mov eax, dword [ebp - 0x14]
add eax, eax
add eax, eax
add eax, eax
call fcn.004030ec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
add eax, eax
add eax, eax
add eax, eax
call fcn.004030ec
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.0040334c
mov esi, dword [ebp - 0x24]
sub esi, 2
test esi, esi
jl 0x475423
inc esi
xor edx, edx
lea eax, [edx + 1]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], eax
inc edx
dec esi
jne 0x475416
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [eax + edx*4 - 4], ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
test byte [ebp - 0x28], 1
jne 0x47545f
push ebp
mov eax, dword [ebp - 0xc]
push dword [eax]
mov edx, 0x475058
mov eax, 1
call fcn.00475164
pop ecx
test al, al
jne 0x475518
test byte [ebp - 0x28], 2
jne 0x475484
push ebp
mov eax, dword [ebp - 0xc]
push dword [eax + 8]
mov edx, 0x475058
mov eax, 2
call fcn.00475164
pop ecx
test al, al
jne 0x475518
test byte [ebp - 0x28], 4
jne 0x4754a5
push ebp
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
mov edx, 0x47508c
mov eax, 4
call fcn.00475164
pop ecx
test al, al
jne 0x475518
test byte [ebp - 0x28], 8
jne 0x4754c6
push ebp
mov eax, dword [ebp - 0xc]
push dword [eax + 0xc]
mov edx, 0x47508c
mov eax, 8
call fcn.00475164
pop ecx
test al, al
jne 0x475518
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x47ae1c]
call fcn.004068c0
add esp, 4
xor edx, edx
jmp 0x4754ea
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp - 0x10]
cmp byte [eax + edx], 0
je 0x4754e4
mov ebx, edx
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
mov esi, dword [ebp - 4]
mov edi, dword [esi + edx*8]
mov dword [ecx + eax*8], edi
mov edi, dword [esi + edx*8 + 4]
mov dword [ecx + eax*8 + 4], edi
inc eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + edx*4]
cmp ebx, edx
jne 0x4754f7
mov eax, dword [ebp - 0x1c]
call fcn.00403108
mov eax, dword [ebp - 4]
call fcn.00403108
mov eax, dword [ebp - 0x10]
call fcn.00403108
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret