Function at 0x45e1c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x5c
fld xword [esp + 0x70]
fld st(0)
fstp xword [esp + 0x28]
fxam
wait
fnstsw ax
and ax, 0x4500
cmp ax, 0x100
je 0x45e69c
movzx edi, word [esp + 0x30]
test di, di
js 0x45e600
fxam
wait
fnstsw ax
fstp st(0)
and ax, 0x4500
cmp ax, 0x500
je 0x45e6b1
and di, 0x7fff
mov word [esp + 8], di
je 0x45e3b0
mov esi, dword [ebx + 0xc]
sub word [esp + 8], 0x3fff
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
cmp esi, 0xe
ja 0x45e672
test ebp, ebp
js 0x45e24a
nop
lea esi, [esi]
shld ebp, edi, 1
add edi, edi
test ebp, ebp
jns 0x45e240
mov ecx, 0xe
mov eax, 4
xor edx, edx
sub ecx, esi
shl ecx, 2
shld edx, eax, cl
shl eax, cl
test cl, 0x20
je 0x45e269
mov edx, eax
xor eax, eax
shrd edi, ebp, 1
shr ebp, 1
add eax, edi
adc edx, ebp
test edx, edx
js 0x45e691
shld edx, eax, 1
add eax, eax
mov ecx, 0xf
sub ecx, esi
xor esi, esi
shl ecx, 2
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
cmovne eax, edx
cmovne edx, esi
mov edi, eax
mov ebp, edx
mov eax, dword [ebx + 4]
lea edx, [esp + 0x38]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov esi, edx
mov edx, eax
mov dword [esp + 0x18], eax
and eax, 0x20
and edx, 0x800
mov byte [esp + 0x17], al
mov dword [esp + 0x1c], edx
movzx edx, word [esp + 8]
jmp 0x45e31f
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jle 0x45e2e5
mov ebx, dword [esp + 0xc]
sub ecx, 1
mov dword [ebx + 0xc], ecx
shrd edi, ebp, 4
shr ebp, 4
test eax, eax
mov dword [esp + 8], esi
je 0x45e382
mov esi, dword [esp + 8]
add esi, 1
cmp eax, 9
jle 0x45e3a6
add eax, 0x37
or al, byte [esp + 0x17]
mov ecx, dword [esp + 8]
mov byte [ecx], al
mov ecx, ebp
or ecx, edi
je 0x45e3f5
mov eax, edi
and eax, 0xf
cmp edi, eax
jne 0x45e2d0
cmp esi, dword [esp + 0x10]
ja 0x45e345
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x45e345
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], esi
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jle 0x45e34f
lea ecx, [esi + 1]
mov byte [esi], 0x2e
mov dword [esp + 8], ecx
cmp ebp, 0
ja 0x45e359
cmp edi, 1
jbe 0x45e376
lea ecx, [edx - 1]
lea esi, [esi]
shrd edi, ebp, 1
shr ebp, 1
mov edx, ecx
mov ebx, edi
mov esi, ebp
lea ecx, [edx - 1]
xor ebx, 1
or esi, ebx
jne 0x45e360
xor edi, edi
xor ebp, ebp
test eax, eax
jne 0x45e2f8
mov ebx, dword [esp + 0x10]
cmp dword [esp + 8], ebx
ja 0x45e39f
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0xc]
mov esi, dword [esp + 8]
test ecx, ecx
js 0x45e315
mov esi, dword [esp + 8]
add esi, 1
add eax, 0x30
jmp 0x45e30f
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov edx, ebp
or edx, edi
je 0x45e61f
test ebp, ebp
js 0x45e6d3
mov eax, 0xffffc001
nop
shld ebp, edi, 1
mov edx, eax
add edi, edi
sub eax, 1
test ebp, ebp
jns 0x45e3d0
mov word [esp + 8], dx
mov esi, dword [ebx + 0xc]
cmp esi, 0xe
ja 0x45e29f
jmp 0x45e24a
cmp esi, dword [esp + 0x10]
mov word [esp + 8], dx
mov ebx, dword [esp + 0xc]
je 0x45e63a
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0xc], eax
jle 0x45e60c
mov eax, esi
sub eax, dword [esp + 0x10]
mov edx, dword [ebx + 0xc]
movsx edi, word [esp + 8]
test edx, edx
lea ecx, [eax + edx]
mov dword [esp + 8], edi
cmovg eax, ecx
xor edx, edx
test dword [esp + 0x18], 0x1c0
mov ecx, 0x66666667
setne dl
lea ebp, [eax + edx + 5]
mov eax, edi
imul ecx
mov eax, edi
sar eax, 0x1f
mov ecx, edx
sar ecx, 2
sub ecx, eax
je 0x45e6c9
mov edi, 2
mov eax, 0x66666667
add ebp, 1
add edi, 1
imul ecx
sar ecx, 0x1f
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x45e462
movsx edi, di
mov eax, dword [esp + 0xc]
cmp eax, ebp
jle 0x45e4e0
sub eax, ebp
test dword [esp + 0x18], 0x600
jne 0x45e659
sub eax, 1
mov dword [ebx + 8], eax
lea esi, [esi]
mov edx, ebx
mov eax, 0x20
call fcn.0045d020
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
test eax, eax
mov dword [ebx + 8], edx
jg 0x45e4a0
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
test byte [esp + 0x18], 0x80
je 0x45e4ee
mov esi, esi
lea edi, [edi]
mov edx, ebx
mov eax, 0x2d
call fcn.0045d020
jmp 0x45e507
mov dword [ebx + 8], 0xffffffff
test byte [esp + 0x18], 0x80
jne 0x45e4d0
test dword [esp + 0x18], 0x100
jne 0x45e661
test byte [esp + 0x18], 0x40
jne 0x45e680
mov edx, ebx
mov eax, 0x30
call fcn.0045d020
mov eax, dword [ebx + 4]
mov edx, ebx
and eax, 0x20
or eax, 0x58
call fcn.0045d020
mov eax, dword [ebx + 8]
test eax, eax
jle 0x45e559
test byte [ebx + 5], 2
je 0x45e559
sub eax, 1
mov dword [ebx + 8], eax
lea esi, [esi]
lea edi, [edi]
mov edx, ebx
mov eax, 0x30
call fcn.0045d020
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
test eax, eax
mov dword [ebx + 8], edx
jg 0x45e540
cmp esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x10]
ja 0x45e587
jmp 0x45e5ac
movzx eax, word [ebx + 0x1c]
test ax, ax
mov word [esp + 0x26], ax
je 0x45e583
lea eax, [esp + 0x26]
mov ecx, ebx
mov edx, 1
call fcn.0045d080
cmp esi, ebp
je 0x45e5ac
sub esi, 1
movsx eax, byte [esi]
cmp eax, 0x2e
je 0x45e5f0
cmp eax, 0x2c
je 0x45e565
mov edx, ebx
call fcn.0045d020
jmp 0x45e583
mov edx, ebx
mov eax, 0x30
call fcn.0045d020
mov eax, dword [ebx + 0xc]
lea edx, [eax - 1]
test eax, eax
mov dword [ebx + 0xc], edx
jg 0x45e5a0
mov eax, dword [ebx + 4]
mov edx, ebx
and eax, 0x20
or eax, 0x50
call fcn.0045d020
mov eax, dword [esp + 8]
add dword [ebx + 8], edi
mov ecx, ebx
or dword [ebx + 4], 0x1c0
cdq
call fcn.0045d850
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call fcn.0045d320
jmp 0x45e583
or dword [ebx + 4], 0x80
jmp 0x45e1f4
movsx eax, word [esp + 8]
mov edi, 2
mov dword [esp + 8], eax
jmp 0x45e4e7
mov esi, dword [ebx + 0xc]
cmp esi, 0xe
jbe 0x45e240
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x10], eax
mov edx, dword [ebx + 0xc]
test edx, edx
jle 0x45e6e2
lea eax, [esp + 0x39]
mov byte [esp + 0x38], 0x2e
lea esi, [eax + 1]
mov byte [eax], 0x30
jmp 0x45e408
mov dword [ebx + 8], eax
jmp 0x45e4e7
mov edx, ebx
mov eax, 0x2b
call fcn.0045d020
jmp 0x45e507
mov edx, ebp
or edx, edi
jne 0x45e29f
jmp 0x45e62b
mov edx, ebx
mov eax, 0x20
call fcn.0045d020
jmp 0x45e507
add word [esp + 8], 1
jmp 0x45e281
fstp st(0)
mov ecx, ebx
mov edx, 0x505940
xor eax, eax
call fcn.0045d280
jmp 0x45e5df
mov eax, edi
mov ecx, ebx
mov edx, 0x505944
and eax, 0x8000
call fcn.0045d280
jmp 0x45e5df
mov edi, 2
jmp 0x45e47e
mov eax, 0xffffc002
mov word [esp + 8], ax
jmp 0x45e3e4
test dword [esp + 0x18], 0x800
mov eax, dword [esp + 0x10]
je 0x45e64e
jmp 0x45e645