Function at 0x4edf70
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 0x4ee44c
movzx edi, word [esp + 0x30]
test di, di
js 0x4ee3b0
fxam
wait
fnstsw ax
fstp st(0)
and ax, 0x4500
cmp ax, 0x500
je 0x4ee461
and di, 0x7fff
mov word [esp + 8], di
je 0x4ee160
mov esi, dword [ebx + 0xc]
sub word [esp + 8], 0x3fff
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
cmp esi, 0xe
ja 0x4ee422
test ebp, ebp
js 0x4edffa
nop
lea esi, [esi]
shld ebp, edi, 1
add edi, edi
test ebp, ebp
jns 0x4edff0
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 0x4ee019
mov edx, eax
xor eax, eax
shrd edi, ebp, 1
shr ebp, 1
add eax, edi
adc edx, ebp
test edx, edx
js 0x4ee441
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 0x4ee0cf
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jle 0x4ee095
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 0x4ee132
mov esi, dword [esp + 8]
add esi, 1
cmp eax, 9
jle 0x4ee156
add eax, 0x37
or al, byte [esp + 0x17]
mov ecx, dword [esp + 8]
mov byte [ecx], al
mov ecx, ebp
or ecx, edi
je 0x4ee1a5
mov eax, edi
and eax, 0xf
cmp edi, eax
jne 0x4ee080
cmp esi, dword [esp + 0x10]
ja 0x4ee0f5
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x4ee0f5
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], esi
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jle 0x4ee0ff
lea ecx, [esi + 1]
mov byte [esi], 0x2e
mov dword [esp + 8], ecx
cmp ebp, 0
ja 0x4ee109
cmp edi, 1
jbe 0x4ee126
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 0x4ee110
xor edi, edi
xor ebp, ebp
test eax, eax
jne 0x4ee0a8
mov ebx, dword [esp + 0x10]
cmp dword [esp + 8], ebx
ja 0x4ee14f
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0xc]
mov esi, dword [esp + 8]
test ecx, ecx
js 0x4ee0c5
mov esi, dword [esp + 8]
add esi, 1
add eax, 0x30
jmp 0x4ee0bf
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov edx, ebp
or edx, edi
je 0x4ee3cf
test ebp, ebp
js 0x4ee483
mov eax, 0xffffc001
nop
shld ebp, edi, 1
mov edx, eax
add edi, edi
sub eax, 1
test ebp, ebp
jns 0x4ee180
mov word [esp + 8], dx
mov esi, dword [ebx + 0xc]
cmp esi, 0xe
ja 0x4ee04f
jmp 0x4edffa
cmp esi, dword [esp + 0x10]
mov word [esp + 8], dx
mov ebx, dword [esp + 0xc]
je 0x4ee3ea
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0xc], eax
jle 0x4ee3bc
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 0x4ee479
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 0x4ee212
movsx edi, di
mov eax, dword [esp + 0xc]
cmp eax, ebp
jle 0x4ee290
sub eax, ebp
test dword [esp + 0x18], 0x600
jne 0x4ee409
sub eax, 1
mov dword [ebx + 8], eax
lea esi, [esi]
mov edx, ebx
mov eax, 0x20
call fcn.004ecd10
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
test eax, eax
mov dword [ebx + 8], edx
jg 0x4ee250
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
test byte [esp + 0x18], 0x80
je 0x4ee29e
mov esi, esi
lea edi, [edi]
mov edx, ebx
mov eax, 0x2d
call fcn.004ecd10
jmp 0x4ee2b7
mov dword [ebx + 8], 0xffffffff
test byte [esp + 0x18], 0x80
jne 0x4ee280
test dword [esp + 0x18], 0x100
jne 0x4ee411
test byte [esp + 0x18], 0x40
jne 0x4ee430
mov edx, ebx
mov eax, 0x30
call fcn.004ecd10
mov eax, dword [ebx + 4]
mov edx, ebx
and eax, 0x20
or eax, 0x58
call fcn.004ecd10
mov eax, dword [ebx + 8]
test eax, eax
jle 0x4ee309
test byte [ebx + 5], 2
je 0x4ee309
sub eax, 1
mov dword [ebx + 8], eax
lea esi, [esi]
lea edi, [edi]
mov edx, ebx
mov eax, 0x30
call fcn.004ecd10
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
test eax, eax
mov dword [ebx + 8], edx
jg 0x4ee2f0
cmp esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x10]
ja 0x4ee337
jmp 0x4ee35c
movzx eax, word [ebx + 0x1c]
test ax, ax
mov word [esp + 0x26], ax
je 0x4ee333
lea eax, [esp + 0x26]
mov ecx, ebx
mov edx, 1
call fcn.004ecd70
cmp esi, ebp
je 0x4ee35c
sub esi, 1
movsx eax, byte [esi]
cmp eax, 0x2e
je 0x4ee3a0
cmp eax, 0x2c
je 0x4ee315
mov edx, ebx
call fcn.004ecd10
jmp 0x4ee333
mov edx, ebx
mov eax, 0x30
call fcn.004ecd10
mov eax, dword [ebx + 0xc]
lea edx, [eax - 1]
test eax, eax
mov dword [ebx + 0xc], edx
jg 0x4ee350
mov eax, dword [ebx + 4]
mov edx, ebx
and eax, 0x20
or eax, 0x50
call fcn.004ecd10
mov eax, dword [esp + 8]
add dword [ebx + 8], edi
mov ecx, ebx
or dword [ebx + 4], 0x1c0
cdq
call fcn.004ed5a0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call fcn.004ed070
jmp 0x4ee333
or dword [ebx + 4], 0x80
jmp 0x4edfa4
movsx eax, word [esp + 8]
mov edi, 2
mov dword [esp + 8], eax
jmp 0x4ee297
mov esi, dword [ebx + 0xc]
cmp esi, 0xe
jbe 0x4edff0
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 0x4ee492
lea eax, [esp + 0x39]
mov byte [esp + 0x38], 0x2e
lea esi, [eax + 1]
mov byte [eax], 0x30
jmp 0x4ee1b8
mov dword [ebx + 8], eax
jmp 0x4ee297
mov edx, ebx
mov eax, 0x2b
call fcn.004ecd10
jmp 0x4ee2b7
mov edx, ebp
or edx, edi
jne 0x4ee04f
jmp 0x4ee3db
mov edx, ebx
mov eax, 0x20
call fcn.004ecd10
jmp 0x4ee2b7
add word [esp + 8], 1
jmp 0x4ee031
fstp st(0)
mov ecx, ebx
mov edx, 0x507cbe
xor eax, eax
call fcn.004ecfd0
jmp 0x4ee38f
mov eax, edi
mov ecx, ebx
mov edx, 0x507cc2
and eax, 0x8000
call fcn.004ecfd0
jmp 0x4ee38f
mov edi, 2
jmp 0x4ee22e
mov eax, 0xffffc002
mov word [esp + 8], ax
jmp 0x4ee194
test dword [esp + 0x18], 0x800
mov eax, dword [esp + 0x10]
je 0x4ee3fe
jmp 0x4ee3f5