Function at 0x4b2694
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x28]
cmp eax, dword [ebp - 8]
jge 0x4b26c9
mov ecx, 0xeb
mov edx, 0x4b287c
mov eax, 0x4b28c4
call fcn.00404718
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
je 0x4b26ee
mov eax, dword [ebp - 8]
dec eax
cmp eax, dword [ebp - 0xc]
je 0x4b26ee
mov ecx, 0xed
mov edx, 0x4b287c
mov eax, 0x4b290c
call fcn.00404718
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jle 0x4b2702
inc dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4b2776
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
shl eax, 5
mov edx, dword [ebp - 0x28]
movzx edx, byte [edx + 2]
xor eax, edx
and eax, 0x3fff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
and edx, dword [ecx + 0x58]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [eax + edx*4], ecx
inc dword [ebp - 0x28]
inc dword [ebp - 0x10]
dec dword [ebp - 0x2c]
jne 0x4b2730
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x4b27d6
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add dword [edx + 0x44], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x4b2812
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jb 0x4b2812
mov eax, dword [ebp - 4]
call fcn.004b2dc4
jmp 0x4b2812
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x44]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x5c]
jl 0x4b2812
mov eax, dword [ebp - 4]
mov byte [eax + 4], 1
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x5c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
add dword [edx + 0x44], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
add dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x4b2859
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
test dword [eax + 0x10], 0xfff
jne 0x4b2859
mov eax, dword [ebp - 4]
fild dword [eax + 0x10]
fmul dword [0x4b2948]
mov eax, dword [ebp - 4]
fild dword [eax + 0x50]
fdivp st(1)
call fcn.00402c90
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jb 0x4b286f
mov eax, dword [ebp - 4]
call fcn.004b2dc4
pop ebx
mov esp, ebp
pop ebp
ret