Function at 0x416470
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 0x41694c
movzx edi, word [esp + 0x30]
test di, di
js 0x4168b0
fxam
wait
fnstsw ax
fstp st(0)
and ax, 0x4500
cmp ax, 0x500
je 0x416961
and di, 0x7fff
mov word [esp + 8], di
je 0x416660
mov esi, dword [ebx + 0xc]
sub word [esp + 8], 0x3fff
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
cmp esi, 0xe
ja 0x416922
test ebp, ebp
js 0x4164fa
nop
lea esi, [esi]
shld ebp, edi, 1
add edi, edi
test ebp, ebp
jns 0x4164f0
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 0x416519
mov edx, eax
xor eax, eax
shrd edi, ebp, 1
shr ebp, 1
add eax, edi
adc edx, ebp
test edx, edx
js 0x416941
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 0x4165cf
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jle 0x416595
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 0x416632
mov esi, dword [esp + 8]
add esi, 1
cmp eax, 9
jle 0x416656
add eax, 0x37
or al, byte [esp + 0x17]
mov ecx, dword [esp + 8]
mov byte [ecx], al
mov ecx, ebp
or ecx, edi
je 0x4166a5
mov eax, edi
and eax, 0xf
cmp edi, eax
jne 0x416580
cmp esi, dword [esp + 0x10]
ja 0x4165f5
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x4165f5
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], esi
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jle 0x4165ff
lea ecx, [esi + 1]
mov byte [esi], 0x2e
mov dword [esp + 8], ecx
cmp ebp, 0
ja 0x416609
cmp edi, 1
jbe 0x416626
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 0x416610
xor edi, edi
xor ebp, ebp
test eax, eax
jne 0x4165a8
mov ebx, dword [esp + 0x10]
cmp dword [esp + 8], ebx
ja 0x41664f
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0xc]
mov esi, dword [esp + 8]
test ecx, ecx
js 0x4165c5
mov esi, dword [esp + 8]
add esi, 1
add eax, 0x30
jmp 0x4165bf
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov edx, ebp
or edx, edi
je 0x4168cf
test ebp, ebp
js 0x416983
mov eax, 0xffffc001
nop
shld ebp, edi, 1
mov edx, eax
add edi, edi
sub eax, 1
test ebp, ebp
jns 0x416680
mov word [esp + 8], dx
mov esi, dword [ebx + 0xc]
cmp esi, 0xe
ja 0x41654f
jmp 0x4164fa
cmp esi, dword [esp + 0x10]
mov word [esp + 8], dx
mov ebx, dword [esp + 0xc]
je 0x4168ea
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0xc], eax
jle 0x4168bc
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 0x416979
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 0x416712
movsx edi, di
mov eax, dword [esp + 0xc]
cmp eax, ebp
jle 0x416790
sub eax, ebp
test dword [esp + 0x18], 0x600
jne 0x416909
sub eax, 1
mov dword [ebx + 8], eax
lea esi, [esi]
mov edx, ebx
mov eax, 0x20
call dbg.__pformat_putc
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
test eax, eax
mov dword [ebx + 8], edx
jg 0x416750
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
test byte [esp + 0x18], 0x80
je 0x41679e
mov esi, esi
lea edi, [edi]
mov edx, ebx
mov eax, 0x2d
call dbg.__pformat_putc
jmp 0x4167b7
mov dword [ebx + 8], 0xffffffff
test byte [esp + 0x18], 0x80
jne 0x416780
test dword [esp + 0x18], 0x100
jne 0x416911
test byte [esp + 0x18], 0x40
jne 0x416930
mov edx, ebx
mov eax, 0x30
call dbg.__pformat_putc
mov eax, dword [ebx + 4]
mov edx, ebx
and eax, 0x20
or eax, 0x58
call dbg.__pformat_putc
mov eax, dword [ebx + 8]
test eax, eax
jle 0x416809
test byte [ebx + 5], 2
je 0x416809
sub eax, 1
mov dword [ebx + 8], eax
lea esi, [esi]
lea edi, [edi]
mov edx, ebx
mov eax, 0x30
call dbg.__pformat_putc
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
test eax, eax
mov dword [ebx + 8], edx
jg 0x4167f0
cmp esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x10]
ja 0x416837
jmp 0x41685c
movzx eax, word [ebx + 0x1c]
test ax, ax
mov word [esp + 0x26], ax
je 0x416833
lea eax, [esp + 0x26]
mov ecx, ebx
mov edx, 1
call dbg.__pformat_wputchars
cmp esi, ebp
je 0x41685c
sub esi, 1
movsx eax, byte [esi]
cmp eax, 0x2e
je 0x4168a0
cmp eax, 0x2c
je 0x416815
mov edx, ebx
call dbg.__pformat_putc
jmp 0x416833
mov edx, ebx
mov eax, 0x30
call dbg.__pformat_putc
mov eax, dword [ebx + 0xc]
lea edx, [eax - 1]
test eax, eax
mov dword [ebx + 0xc], edx
jg 0x416850
mov eax, dword [ebx + 4]
mov edx, ebx
and eax, 0x20
or eax, 0x50
call dbg.__pformat_putc
mov eax, dword [esp + 8]
add dword [ebx + 8], edi
mov ecx, ebx
or dword [ebx + 4], 0x1c0
cdq
call sym.___pformat_int.isra.0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call dbg.__pformat_emit_radix_point
jmp 0x416833
or dword [ebx + 4], 0x80
jmp 0x4164a4
movsx eax, word [esp + 8]
mov edi, 2
mov dword [esp + 8], eax
jmp 0x416797
mov esi, dword [ebx + 0xc]
cmp esi, 0xe
jbe 0x4164f0
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 0x416992
lea eax, [esp + 0x39]
mov byte [esp + 0x38], 0x2e
lea esi, [eax + 1]
mov byte [eax], 0x30
jmp 0x4166b8
mov dword [ebx + 8], eax
jmp 0x416797
mov edx, ebx
mov eax, 0x2b
call dbg.__pformat_putc
jmp 0x4167b7
mov edx, ebp
or edx, edi
jne 0x41654f
jmp 0x4168db
mov edx, ebx
mov eax, 0x20
call dbg.__pformat_putc
jmp 0x4167b7
add word [esp + 8], 1
jmp 0x416531
fstp st(0)
mov ecx, ebx
mov edx, 0x4a92fe
xor eax, eax
call dbg.__pformat_emit_inf_or_nan
jmp 0x41688f
mov eax, edi
mov ecx, ebx
mov edx, 0x4a9302
and eax, 0x8000
call dbg.__pformat_emit_inf_or_nan
jmp 0x41688f
mov edi, 2
jmp 0x41672e
mov eax, 0xffffc002
mov word [esp + 8], ax
jmp 0x416694
test dword [esp + 0x18], 0x800
mov eax, dword [esp + 0x10]
je 0x4168fe
jmp 0x4168f5